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

logging: Add source log field #158

Merged
merged 1 commit into from
Feb 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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