Blob Blame History Raw
From d831680e924fe0cef59971dcb4d4269b259c85d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Sun, 16 Aug 2020 02:03:33 +0200
Subject: [PATCH] Fix for new logrus-logstash-hook
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 registry/registry.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/registry/registry.go b/registry/registry.go
index 20190c11..49705f2a 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -285,7 +285,9 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
 		})
 	case "logstash":
 		log.SetFormatter(&logstash.LogstashFormatter{
-			TimestampFormat: time.RFC3339Nano,
+			Formatter: &log.JSONFormatter{
+				TimestampFormat: time.RFC3339Nano,
+			},
 		})
 	default:
 		// just let the library use default on empty string.
-- 
2.26.2