mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 07:25:25 +00:00
Merge pull request #3364 from Agilicus/escape-json
fix: disable DisableHTMLEscape on logrus json logging
This commit is contained in:
@@ -354,7 +354,8 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
|
||||
switch formatter {
|
||||
case "json":
|
||||
log.SetFormatter(&log.JSONFormatter{
|
||||
TimestampFormat: time.RFC3339Nano,
|
||||
TimestampFormat: time.RFC3339Nano,
|
||||
DisableHTMLEscape: true,
|
||||
})
|
||||
case "text":
|
||||
log.SetFormatter(&log.TextFormatter{
|
||||
|
Reference in New Issue
Block a user