Increase log level on SIGRTMAX. Reset it on SIGHUP
[bpdyndnsd] / src / logger.cpp
index d0498cb..8f42a3e 100644 (file)
@@ -678,6 +678,21 @@ void Logger::print_caught_sigrtmin() const
 
 
 /**
+ * SIGRTMAX caught.
+ */
+void Logger::print_caught_sigrtmax(int new_loglevel) const
+{
+    int level = 0;
+    if ( level <= Loglevel )
+    {
+        ostringstream msg;
+        msg << "Caught SIGRTMAX. Increasing log level to " << new_loglevel << endl;
+        log_error(msg.str());
+    }
+}
+
+
+/**
  * Error while setting signal handler.
  */
 void Logger::print_error_setting_signal(const string& signal) const