Merge pull request #3364 from Agilicus/escape-json
fix: disable DisableHTMLEscape on logrus json loggingmaster
commit
077b38b95e
|
|
@ -355,6 +355,7 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
|
|||
case "json":
|
||||
log.SetFormatter(&log.JSONFormatter{
|
||||
TimestampFormat: time.RFC3339Nano,
|
||||
DisableHTMLEscape: true,
|
||||
})
|
||||
case "text":
|
||||
log.SetFormatter(&log.TextFormatter{
|
||||
|
|
|
|||
Loading…
Reference in New Issue