Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
logging: Add source log field
Browse files Browse the repository at this point in the history
Add a `source=` log field for parity with the other system components.

Fixes #157.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Feb 28, 2018
1 parent 71de96f commit dce4ebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ type namespace struct {
}

var agentLog = logrus.WithFields(logrus.Fields{
"name": agentName,
"pid": os.Getpid(),
"name": agentName,
"pid": os.Getpid(),
"source": "agent",
})

// version is the agent version. This variable is populated at build time.
Expand Down

0 comments on commit dce4ebd

Please sign in to comment.