Increase logging

This commit is contained in:
Ron Pedde 2004-03-01 21:12:20 +00:00
parent d8981d353c
commit c28a956379
2 changed files with 7 additions and 0 deletions

View File

@ -339,6 +339,8 @@ DAAP_BLOCK *daap_response_songlist(void) {
return NULL; return NULL;
} }
DPRINTF(ERR_DEBUG,"Successfully enumerated database\n");
return root; return root;
} }

View File

@ -219,8 +219,11 @@ void daap_handler(WS_CONNINFO *pwsc) {
pwsc->close=close; pwsc->close=close;
if(!streaming) { if(!streaming) {
DPRINTF(ERR_DEBUG,"Satisfying request\n");
ws_addresponseheader(pwsc,"Content-Length","%d",root->reported_size + 8); ws_addresponseheader(pwsc,"Content-Length","%d",root->reported_size + 8);
ws_writefd(pwsc,"HTTP/1.1 200 OK\r\n"); ws_writefd(pwsc,"HTTP/1.1 200 OK\r\n");
DPRINTF(ERR_DEBUG,"Emitting headers\n");
ws_emitheaders(pwsc); ws_emitheaders(pwsc);
/* /*
@ -230,7 +233,9 @@ void daap_handler(WS_CONNINFO *pwsc) {
} }
*/ */
DPRINTF(ERR_DEBUG,"Serializing\n");
daap_serialize(root,pwsc->fd,0); daap_serialize(root,pwsc->fd,0);
DPRINTF(ERR_DEBUG,"Done, freeing\n");
daap_free(root); daap_free(root);
} else { } else {
/* stream out the song */ /* stream out the song */