Skip to content

Commit

Permalink
Add capability to set loglevel to trace during runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Arpad Kiss <[email protected]>
  • Loading branch information
arp-est committed Oct 9, 2024
1 parent 1835c39 commit 7473550
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func main() {
}
logrus.SetLevel(l)
log.FromContext(ctx).Infof("Config: %#v", config)
logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{

Check failure on line 118 in main.go

View workflow job for this annotation

GitHub Actions / golangci-lint / golangci-lint

undefined: logruslogger.SetupLevelChangeOnSignal (typecheck)
syscall.SIGUSR1: logrus.TraceLevel,
syscall.SIGUSR2: l,
})

// Configure Open Telemetry
if opentelemetry.IsEnabled() {
Expand Down

0 comments on commit 7473550

Please sign in to comment.