Skip to content

Commit

Permalink
style update for zerolog in context
Browse files Browse the repository at this point in the history
  • Loading branch information
iamemilio committed Jun 21, 2022
1 parent f3b5b5b commit 561ab2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions v3/integrations/logcontext-v2/nrzerolog/Readme.md
Expand Up @@ -42,9 +42,8 @@ func main() {
newrelic.ConfigAppName("NRZerolog Example"),
newrelic.ConfigInfoLogger(os.Stdout),
newrelic.ConfigZerologPluginEnabled(true),
newrelic.ConfigDistributedTracerEnabled(true),
)
if nil != err {
if err != nil {
fmt.Println(err)
os.Exit(1)
}
Expand Down
3 changes: 1 addition & 2 deletions v3/integrations/logcontext-v2/nrzerolog/example/main.go
Expand Up @@ -19,9 +19,8 @@ func main() {
newrelic.ConfigAppName("NRZerolog Example"),
newrelic.ConfigInfoLogger(os.Stdout),
newrelic.ConfigZerologPluginEnabled(true),
newrelic.ConfigDistributedTracerEnabled(true),
)
if nil != err {
if err != nil {
fmt.Println(err)
os.Exit(1)
}
Expand Down
2 changes: 1 addition & 1 deletion v3/newrelic/config_options.go
Expand Up @@ -97,7 +97,7 @@ const (
// enabled.
func ConfigZerologPluginEnabled(enabled bool) ConfigOption {
return func(cfg *Config) {
if enabled == true {
if enabled {
cfg.ApplicationLogging.Enabled = true
cfg.ApplicationLogging.Forwarding.Enabled = true
cfg.ApplicationLogging.Metrics.Enabled = true
Expand Down

0 comments on commit 561ab2d

Please sign in to comment.