diff --git a/main.go b/main.go index 65d0dd7..9d424ad 100644 --- a/main.go +++ b/main.go @@ -114,6 +114,10 @@ func main() { logrus.Fatalf("invalid log level %s", c.LogLevel) } logrus.SetLevel(level) + logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{ + syscall.SIGUSR1: logrus.TraceLevel, + syscall.SIGUSR2: level, + }) logger.Infof("rootConf: %+v", c)