aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjloup <jloup@jloup.work>2018-05-16 20:39:35 +0200
committerjloup <jloup@jloup.work>2018-05-16 20:47:26 +0200
commit943b392b0d175a4e12b21eae984a0acd2719bd75 (patch)
treea5f744bc0db2bc6c73f318bb0e249625d434420b
parent4495b984d3e60874281f37cdb2dbe2cf1c3874ab (diff)
downloadFront-943b392b0d175a4e12b21eae984a0acd2719bd75.tar.gz
Front-943b392b0d175a4e12b21eae984a0acd2719bd75.tar.zst
Front-943b392b0d175a4e12b21eae984a0acd2719bd75.zip
Attempt fix systemd logs.
-rw-r--r--api/logger.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logger.go b/api/logger.go
index 5f49d29..11536e8 100644
--- a/api/logger.go
+++ b/api/logger.go
@@ -50,7 +50,8 @@ func Logger() gin.HandlerFunc {
50 level = logrus.ErrorLevel 50 level = logrus.ErrorLevel
51 } 51 }
52 52
53 errors := c.Errors.ByType(gin.ErrorTypePrivate) 53 errors := c.Errors
54 log.Infof("TMP %s '%v'", msgLog, errors)
54 55
55 for _, err := range errors { 56 for _, err := range errors {
56 l.Logf(level, "%s: %s", msgLog, err.Err) 57 l.Logf(level, "%s: %s", msgLog, err.Err)