forked from TrueCloudLab/distribution
Merge pull request #3364 from Agilicus/escape-json
fix: disable DisableHTMLEscape on logrus json logging
This commit is contained in:
commit
077b38b95e
1 changed files with 2 additions and 1 deletions
|
@ -354,7 +354,8 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
|
||||||
switch formatter {
|
switch formatter {
|
||||||
case "json":
|
case "json":
|
||||||
log.SetFormatter(&log.JSONFormatter{
|
log.SetFormatter(&log.JSONFormatter{
|
||||||
TimestampFormat: time.RFC3339Nano,
|
TimestampFormat: time.RFC3339Nano,
|
||||||
|
DisableHTMLEscape: true,
|
||||||
})
|
})
|
||||||
case "text":
|
case "text":
|
||||||
log.SetFormatter(&log.TextFormatter{
|
log.SetFormatter(&log.TextFormatter{
|
||||||
|
|
Loading…
Reference in a new issue