[httpd] Better logging of unauthorized requests

This commit is contained in:
ejurgensen
2018-09-07 17:01:32 +02:00
parent f5721b7a18
commit 3ba92aa860
3 changed files with 5 additions and 3 deletions

View File

@@ -297,7 +297,7 @@ rsp_request_authorize(struct httpd_request *hreq)
ret = httpd_basic_auth(hreq->req, NULL, passwd, cfg_getstr(cfg_getsec(cfg, "library"), "name"));
if (ret != 0)
{
DPRINTF(E_LOG, L_RSP, "Unsuccessful library authentication\n");
DPRINTF(E_LOG, L_RSP, "Unsuccessful library authorization attempt from '%s'\n", hreq->peer_address);
return -1;
}