diff --git a/main.go b/main.go index 2af4cbf..2bac199 100644 --- a/main.go +++ b/main.go @@ -75,6 +75,10 @@ func main() { logrus.Fatalf("invalid log level %s", config.LogLevel) } logrus.SetLevel(level) + logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{ + syscall.SIGUSR1: logrus.TraceLevel, + syscall.SIGUSR2: level, + }) // Configure Open Telemetry if opentelemetry.IsEnabled() {