From f085388a74e01c7baa470fc81906e483574dec36 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 21 Oct 2022 02:47:15 -0400 Subject: [PATCH] Unify helper snotes and make netwide. --- ircd/authproc.c | 8 ++++---- ircd/bandbi.c | 8 +++++--- ircd/sslproc.c | 2 ++ ircd/wsproc.c | 2 ++ 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ircd/authproc.c b/ircd/authproc.c index 36b45f64..293abb6f 100644 --- a/ircd/authproc.c +++ b/ircd/authproc.c @@ -224,11 +224,11 @@ cmd_oper_warn(int parc, char **parv) switch(*parv[1]) { case 'D': /* Debug */ - sendto_realops_snomask(SNO_DEBUG, L_ALL, "authd debug: %s", parv[2]); + sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd debug: %s", parv[2]); idebug("authd: %s", parv[2]); break; case 'I': /* Info */ - sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd info: %s", parv[2]); + sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd info: %s", parv[2]); inotice("authd: %s", parv[2]); break; case 'W': /* Warning */ @@ -383,8 +383,8 @@ authd_abort_client(struct Client *client_p) static void restart_authd_cb(rb_helper * helper) { - iwarn("authd: restart_authd_cb called, authd died?"); - sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd: restart_authd_cb called, authd died?"); + iwarn("authd helper died - attempting to restart"); + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "authdd helper died - attempting to restart"); if(helper != NULL) { diff --git a/ircd/bandbi.c b/ircd/bandbi.c index 5927934e..cc709484 100644 --- a/ircd/bandbi.c +++ b/ircd/bandbi.c @@ -104,11 +104,13 @@ start_bandb(void) if(bandb_helper == NULL) { ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno)); - sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb: %s", + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb helper: %s", strerror(errno)); return 1; } + ilog(L_MAIN, "bandb helper started"); + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "bandb helper started"); rb_helper_run(bandb_helper); return 0; } @@ -434,9 +436,9 @@ bandb_rehash_bans(void) static void bandb_restart_cb(rb_helper *helper) { - ilog(L_MAIN, "bandb - bandb_restart_cb called, bandb helper died?"); + ilog(L_MAIN, "bandb helper died - attempting to restart"); sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, - "bandb - bandb_restart_cb called, bandb helper died?"); + "bandb helper died - attempting to restart"); if(helper != NULL) { rb_helper_close(helper); diff --git a/ircd/sslproc.c b/ircd/sslproc.c index f9d3efc3..e88724a4 100644 --- a/ircd/sslproc.c +++ b/ircd/sslproc.c @@ -336,6 +336,8 @@ start_ssldaemon(int count) ssl_do_pipe(P2, ctl); } + ilog(L_MAIN, "ssld helper started"); + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld helper started"); return started; } diff --git a/ircd/wsproc.c b/ircd/wsproc.c index 612a334a..973826b1 100644 --- a/ircd/wsproc.c +++ b/ircd/wsproc.c @@ -322,6 +322,8 @@ start_wsockd(int count) ws_do_pipe(P2, ctl); } + ilog(L_MAIN, "wsockd helper started"); + sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "wsockd helper started"); return started; }