Skip to content

Commit

Permalink
Fix deprecation warning for file target
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Aug 16, 2024
1 parent e6ee871 commit bdfe7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/text_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func init() {
add("file", func(cfg *Config) (sink, error) {
msg := "Value %q is deprecated for agent setting %q please use %q instead!"
deprecation := "The value will be removed in v1.40.0."
log.Printf("W! "+msg+" "+deprecation, "file", "logtarget", "text", "logfile")
log.Printf("W! "+msg+" "+deprecation, "file", "logtarget", "text")

return createTextLogger(cfg)
})
Expand Down

0 comments on commit bdfe7a1

Please sign in to comment.