diff --git a/main.go b/main.go index cb4cca5..c4b4eab 100644 --- a/main.go +++ b/main.go @@ -119,6 +119,10 @@ func main() { logrus.Fatalf("invalid log level %s", cfg.LogLevel) } logrus.SetLevel(l) + logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{ + syscall.SIGUSR1: logrus.TraceLevel, + syscall.SIGUSR2: l, + }) logger.Infof("Config: %#v", cfg)