Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 277ab66

Browse files
add log formatter (#42)
Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent 318a338 commit 277ab66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/git/git.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,7 @@ func main() {
26232623

26242624
// createStructuredLogger...
26252625
func (j *DSGit) createStructuredLogger(ctx *shared.Ctx) {
2626+
logrus.SetFormatter(&logrus.JSONFormatter{})
26262627
log := logrus.WithFields(
26272628
logrus.Fields{
26282629
"environment": os.Getenv("STAGE"),

0 commit comments

Comments
 (0)