Skip to content

Commit

Permalink
Only remove json_format when removing deprecated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Nov 17, 2020
1 parent 17d42d3 commit 0275149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/log/modular.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (conf Config) Sanitised(removeDeprecated bool) (interface{}, error) {
return nil, err
}

if conf.JSONFormat {
if removeDeprecated && conf.JSONFormat {
delete(hashMap, "json_format")
}

Expand Down

0 comments on commit 0275149

Please sign in to comment.