Made sure logs can be rotated by sending a SIGHUP to the hub.
This commit is contained in:
parent
f386e57de8
commit
e4977606a7
|
@ -115,6 +115,11 @@ int main_loop()
|
|||
{
|
||||
LOG_INFO("Reloading configuration files...");
|
||||
LOG_DEBUG("Hub status: %d", (int) hub->status);
|
||||
|
||||
/* Reinitialize logs */
|
||||
hub_log_shutdown();
|
||||
hub_log_initialize(arg_log, arg_log_syslog);
|
||||
hub_set_log_verbosity(arg_verbose);
|
||||
}
|
||||
|
||||
if (read_config(arg_config, &configuration, !arg_have_config) == -1)
|
||||
|
|
Loading…
Reference in New Issue