Logging fixes

This commit is contained in:
Ron Pedde 2004-12-09 05:05:54 +00:00
parent 474d1c996c
commit 16c954fdf4
3 changed files with 6 additions and 4 deletions

View File

@ -142,7 +142,7 @@ void rend_callback(void) {
/* here, we've seen the message, now we have to process it */ /* here, we've seen the message, now we have to process it */
if(rend_read_message(&msg) != sizeof(msg)) { if(rend_read_message(&msg) != sizeof(msg)) {
DPRINTF(E_FATAL,L_REND,"Error reading rendezvous message\n"); DPRINTF(E_FATAL,L_REND,"Rendezvous socket closed (daap server crashed?) Aborting.\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

View File

@ -161,7 +161,7 @@ void rend_callback(void *info) {
/* here, we've seen the message, now we have to process it */ /* here, we've seen the message, now we have to process it */
if(rend_read_message(&msg) != sizeof(msg)) { if(rend_read_message(&msg) != sizeof(msg)) {
DPRINTF(E_FATAL,L_REND,"Error reading rendezvous message\n"); DPRINTF(E_FATAL,L_REND,"Rendezvous socket closed (daap server crashed?) Aborting.\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

View File

@ -89,6 +89,9 @@
Change History (most recent first): Change History (most recent first):
$Log$ $Log$
Revision 1.22 2004/12/09 05:05:54 rpedde
Logging fixes
Revision 1.21 2004/11/30 04:17:32 rpedde Revision 1.21 2004/11/30 04:17:32 rpedde
use pascal packed string to avoid invalid rdata error use pascal packed string to avoid invalid rdata error
@ -400,8 +403,7 @@ void rend_callback(void) {
if((result=rend_read_message(&msg)) != sizeof(msg)) { if((result=rend_read_message(&msg)) != sizeof(msg)) {
err=errno; err=errno;
DPRINTF(E_DBG,L_REND,"Expected %d, got %d\n",sizeof(msg),result); DPRINTF(E_FATAL,L_REND,"Rendezvous socket closed (daap server crashed?) Aborting.\n");
DPRINTF(E_FATAL,L_REND,"Rendezvous pipe closed... Exiting\n");
gStopNow=mDNStrue; gStopNow=mDNStrue;
return; return;
} }