]> jfr.im git - irc/rizon/plexus4.git/commitdiff
Log when rehashing due to sighup, and log when rehash is complete
authorAdam <redacted>
Thu, 30 Jun 2016 00:40:29 +0000 (20:40 -0400)
committerAdam <redacted>
Thu, 30 Jun 2016 00:40:29 +0000 (20:40 -0400)
src/conf.c

index c6b1a8d642bf5ce4691824b3cb8da9c7f5db6759..a9bf9dfe3e18e32404206dcbd768c9f7082dcddd 100644 (file)
@@ -1129,8 +1129,11 @@ int
 rehash(int sig)
 {
   if (sig != 0)
+  {
     sendto_snomask(SNO_ALL, L_ALL,
                    "Got signal SIGHUP, reloading configuration file(s)");
+    ilog(LOG_TYPE_IRCD, "Got signal SIGHUP, reloading configuration file(s)");
+  }
 
   stop_resolver();
   init_resolver();
@@ -1155,6 +1158,8 @@ rehash(int sig)
 
   rehashed_klines = 1;
 
+  ilog(LOG_TYPE_IRCD, "Rehash complete.");
+
   return 0;
 }