Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into envvar_max_traces_per_second
Browse files Browse the repository at this point in the history
  • Loading branch information
gbbr authored Nov 7, 2018
2 parents a5ea28b + d7dfcf1 commit 2f73de0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/trace-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ func runAgent(ctx context.Context) {
// Initialize logging (replacing the default logger). No need
// to defer log.Flush, it was already done when calling
// "SetupDefaultLogger" earlier.
logLevel, ok := log.LogLevelFromString(strings.ToLower(cfg.LogLevel))
cfgLogLevel := strings.ToLower(cfg.LogLevel)
if cfgLogLevel == "warning" {
// to match core agent:
// https://github.com/DataDog/datadog-agent/blob/6f2d901aeb19f0c0a4e09f149c7cc5a084d2f708/pkg/config/log.go#L74-L76
cfgLogLevel = "warn"
}
logLevel, ok := log.LogLevelFromString(cfgLogLevel)
if !ok {
logLevel = log.InfoLvl
}
Expand Down

0 comments on commit 2f73de0

Please sign in to comment.