From ecb0fb69652ab9545d08b12850e987f53918c110 Mon Sep 17 00:00:00 2001 From: jloup Date: Wed, 16 May 2018 20:51:17 +0200 Subject: Revert "Attempt fix systemd logs." This reverts commit 943b392b0d175a4e12b21eae984a0acd2719bd75. --- api/logger.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api') diff --git a/api/logger.go b/api/logger.go index 11536e8..5f49d29 100644 --- a/api/logger.go +++ b/api/logger.go @@ -50,8 +50,7 @@ func Logger() gin.HandlerFunc { level = logrus.ErrorLevel } - errors := c.Errors - log.Infof("TMP %s '%v'", msgLog, errors) + errors := c.Errors.ByType(gin.ErrorTypePrivate) for _, err := range errors { l.Logf(level, "%s: %s", msgLog, err.Err) -- cgit v1.2.3