diff options
| author | liuchang <[email protected]> | 2023-07-14 08:06:46 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-07-14 08:06:46 +0000 |
| commit | e25c7f3f30e40f3cd20d74e7815624dfb5cf8562 (patch) | |
| tree | 3e83a4777604e5b9e5e178c44d17ed8792aaef0a /shaping/src/main.cpp | |
| parent | ef3befccc46e6051ca4a456b9f5442b181d56617 (diff) | |
load swarmkv log level from config
Diffstat (limited to 'shaping/src/main.cpp')
| -rw-r--r-- | shaping/src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shaping/src/main.cpp b/shaping/src/main.cpp index 881476b..b526ff7 100644 --- a/shaping/src/main.cpp +++ b/shaping/src/main.cpp @@ -11,6 +11,7 @@ #include "shaper_stat.h" #include "shaper_marsio.h" #include "shaper_session.h" +#include "shaper_swarmkv.h" #include "shaper_global_stat.h" static int quit = 0; @@ -38,8 +39,9 @@ static void sig_handler(int signo) { if (signo == SIGHUP) { - LOG_INFO("%s: recv SIGHUP, reload zlog.conf", LOG_TAG_SHAPING); + LOG_INFO("%s: recv SIGHUP, reload zlog.conf and swarmkv log level", LOG_TAG_SHAPING); LOG_RELOAD(); + swarmkv_reload_log_level(); } if (signo == SIGQUIT) { |
