Skip to content

Commit 62a7ae6

Browse files
committed
cleanup: use just one variable for logging
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
1 parent a637ec8 commit 62a7ae6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

config/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ func mergeEnvironmentVariables(c *AgentConfig) *AgentConfig {
370370
c.APIEndpoints[0].APIKey = vals[0]
371371
}
372372

373-
// Support LOG_LEVEL and DD_LOG_LEVEL but prefer DD_LOG_LEVEL
374-
if v := os.Getenv("LOG_LEVEL"); v != "" {
375-
c.LogLevel = v
376-
}
377373
if v := os.Getenv("STS_LOG_LEVEL"); v != "" {
378374
c.LogLevel = v
379375
}

0 commit comments

Comments
 (0)