From 94c100153cdcb68de04e28ac739c516dbbc95450 Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Wed, 6 Aug 2008 23:12:02 +0400 Subject: [PATCH] from ircd-ratbox r25799 by androsyn: give a bit more info when libratbox calls logging callbacks --- src/ircd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ircd.c b/src/ircd.c index cd20e75..371d2b4 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -447,12 +447,13 @@ setup_corefile(void) static void ircd_log_cb(const char *str) { - ilog(L_MAIN, "%s", str); + ilog(L_MAIN, "libratbox reports: %s", str); } static void ircd_restart_cb(const char *str) { + ilog(L_MAIN, "libratbox has called the restart callback: %s", str); restart(str); } @@ -469,9 +470,11 @@ ircd_die_cb(const char *str) if(str != NULL) { /* Try to get the message out to currently logged in operators. */ - sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Server panic! %s", str); - inotice("server panic: %s", str); + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "libratbox has called the die callback..aborting: %s", str); + inotice("libratbox has called the die callback..aborting: %s", str); } + else + ilog(L_MAIN, "libratbox has called the die callback..aborting"); unlink(pidFileName); exit(EXIT_FAILURE);