diff --git a/main.go b/main.go index dc04462..aae6db8 100644 --- a/main.go +++ b/main.go @@ -118,6 +118,11 @@ func main() { log.FromContext(ctx).Infof("Config: %#v", config) + logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{ + syscall.SIGUSR1: logrus.TraceLevel, + syscall.SIGUSR2: l, + }) + // Configure Open Telemetry if opentelemetry.IsEnabled() { collectorAddress := config.OpenTelemetryEndpoint