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

Commit

Permalink
Merge pull request #158 from jodh-intel/add-source-log-field
Browse files Browse the repository at this point in the history
logging: Add source log field
  • Loading branch information
Sebastien Boeuf authored Feb 28, 2018
2 parents 71de96f + dce4ebd commit 7a5315b
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 7a5315b

Please sign in to comment.