diff options
| author | 刘畅 <[email protected]> | 2023-07-14 10:26:30 +0000 |
|---|---|---|
| committer | 刘畅 <[email protected]> | 2023-07-14 10:26:30 +0000 |
| commit | 099951d0bd691f35c675df6dbff3031a1a522ee6 (patch) | |
| tree | 3e83a4777604e5b9e5e178c44d17ed8792aaef0a /shaping/src/main.cpp | |
| parent | ef3befccc46e6051ca4a456b9f5442b181d56617 (diff) | |
| parent | e25c7f3f30e40f3cd20d74e7815624dfb5cf8562 (diff) | |
Merge branch 'load_swarmkv_log_level_from_config' into 'rel'v1.2.9
load swarmkv log level from config
See merge request tango/shaping-engine!39
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) { |
