Skip to content

Commit

Permalink
Add SERVICE_NAME to log tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Feb 21, 2018
1 parent cca255b commit 4f2bd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
}
server.Init("video-transcoding-api", cfg.Server)
server.Log.Hooks.Add(logrus_stack.StandardHook())
server.Log.Hooks.Add(logrus_env.NewHook([]string{"ENVIRONMENT"}))
server.Log.Hooks.Add(logrus_env.NewHook([]string{"ENVIRONMENT", "SERVICE_NAME"}))

gcpLoggingHook, err := sdhook.New(
sdhook.GoogleLoggingAgent(),
Expand Down

0 comments on commit 4f2bd85

Please sign in to comment.