Skip to content

Commit

Permalink
camelCase log fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr committed Jan 28, 2025
1 parent a6c8541 commit 6b8c119
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ func NewCheck(name string, checker Checker) Check {
} else if conf.Port != nil {
lf := log.Fields{}
if conf.Check.CheckTypeName != "" {
lf["CheckTypeName"] = conf.Check.CheckTypeName
lf["checkTypeName"] = conf.Check.CheckTypeName
}
if conf.Check.CheckTypeVersion != "" {
lf["CheckTypeVersion"] = conf.Check.CheckTypeVersion
lf["checkTypeVersion"] = conf.Check.CheckTypeVersion
}
if conf.VcsRevision != "" {
lf["VcsRev"] = conf.VcsRevision
lf["vcsRev"] = conf.VcsRevision
}
logger = logging.BuildLoggerWithConfigAndFields(conf.Log, lf)
c = http.NewCheck(name, checker, logger, conf)
Expand Down

0 comments on commit 6b8c119

Please sign in to comment.