--------------------- PatchSet 208 Date: 2002/11/28 09:47:30 Author: rbcollins Branch: external_logger Tag: (none) Log: add some useful debugging Members: src/ipc.cc:1.5.4.3->1.5.4.4 src/logfile.cc:1.1.14.1->1.1.14.2 Index: squid3/src/ipc.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ipc.cc,v retrieving revision 1.5.4.3 retrieving revision 1.5.4.4 diff -u -r1.5.4.3 -r1.5.4.4 --- squid3/src/ipc.cc 27 Nov 2002 14:22:58 -0000 1.5.4.3 +++ squid3/src/ipc.cc 28 Nov 2002 09:47:30 -0000 1.5.4.4 @@ -1,6 +1,6 @@ /* - * $Id: ipc.cc,v 1.5.4.3 2002/11/27 14:22:58 rbcollins Exp $ + * $Id: ipc.cc,v 1.5.4.4 2002/11/28 09:47:30 rbcollins Exp $ * * DEBUG: section 54 Interprocess Communication * AUTHOR: Duane Wessels @@ -563,7 +563,7 @@ #endif execvp(prog, args); debug_log = fdopen(2, "a+"); - debug(50, 0) ("ipcCreate: %s: %s\n", prog, xstrerror()); + debug(54, 0) ("ipcCreate: %s: %s\n", prog, xstrerror()); _exit(1); return 0; } @@ -584,6 +584,7 @@ handler->data = data; dlinkAddTail(handler, &handler->node, &ipc_quit_handlers); /* Check that this process hasn't already quit */ + debug (54,2)("add_ipc_quit_handler: complete for %d\n", pid); #ifndef _SQUID_NEXT_ int status; @@ -617,6 +618,7 @@ void ipcCallQuitHandlers(int pid) { + debug (54,2)("ipcCallQuitHandlers: Looking for handlers for %d\n",pid); ipc_quit_handler *handler; dlink_node *node; node = ipc_quit_handlers.head; @@ -630,5 +632,5 @@ node = node->next; } if (!calledOne) - debug (50,2)("ipcCallQuitHandlers: No handler found for pid %d\n", pid); + debug (54,2)("ipcCallQuitHandlers: No handler found for pid %d\n", pid); } Index: squid3/src/logfile.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/logfile.cc,v retrieving revision 1.1.14.1 retrieving revision 1.1.14.2 diff -u -r1.1.14.1 -r1.1.14.2 --- squid3/src/logfile.cc 27 Nov 2002 02:37:12 -0000 1.1.14.1 +++ squid3/src/logfile.cc 28 Nov 2002 09:47:31 -0000 1.1.14.2 @@ -1,5 +1,5 @@ /* - * $Id: logfile.cc,v 1.1.14.1 2002/11/27 02:37:12 rbcollins Exp $ + * $Id: logfile.cc,v 1.1.14.2 2002/11/28 09:47:31 rbcollins Exp $ * * DEBUG: section 50 Log file handling * AUTHOR: Duane Wessels @@ -89,6 +89,7 @@ lf->logfd = lf->ipccomm.pwfd; commUnsetNonBlocking(lf->logfd); add_ipc_quit_handler(x, logfileHelperQuit, lf); + debug (50,2)("Successfully spawned log helper with squid log fd %d\n", lf->logfd); return lf; }