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 Sep 26, 2024
1 parent d2ba1ce commit a71ced1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func main() {
logrus.SetLevel(level)
log.EnableTracing(true)
log.FromContext(ctx).WithField("duration", time.Since(now)).Infof("completed phase 1: get config from environment")
log.SetupLevelChangeOnSignal(ctx, level)

Check failure on line 138 in main.go

View workflow job for this annotation

GitHub Actions / golangci-lint / golangci-lint

undefined: log.SetupLevelChangeOnSignal (typecheck)

// ********************************************************************************
// Configure Open Telemetry
Expand Down

0 comments on commit a71ced1

Please sign in to comment.