Add some more logging to authentication
authorJuho Vähä-Herttua <juhovh@iki.fi>
Sun, 14 Apr 2013 19:05:31 +0000 (22:05 +0300)
committerJuho Vähä-Herttua <juhovh@iki.fi>
Sun, 14 Apr 2013 19:05:31 +0000 (22:05 +0300)
src/lib/raop.c

index f3cc399b6a5f99fc13e5a9d97e0973ddec7bc812..e5c6539c0b60bb20af6337b9ef492aab3cf1aad0 100644 (file)
@@ -167,8 +167,9 @@ conn_request(void *ptr, http_request_t *request, http_response_t **response)
                        res = http_response_init("RTSP/1.0", 401, "Unauthorized");
                        http_response_add_header(res, "WWW-Authenticate", authstr);
                        free(authstr);
+                       logger_log(conn->raop->logger, LOGGER_DEBUG, "Authentication unsuccessful, sending Unauthorized");
                } else {
-                       logger_log(conn->raop->logger, LOGGER_DEBUG, "AUTHENTICATION SUCCESS!");
+                       logger_log(conn->raop->logger, LOGGER_DEBUG, "Authentication successful!");
                }
        }