]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Attempt fix systemd logs.
authorjloup <jloup@jloup.work>
Wed, 16 May 2018 18:39:35 +0000 (20:39 +0200)
committerjloup <jloup@jloup.work>
Wed, 16 May 2018 18:39:35 +0000 (20:39 +0200)
api/logger.go

index 5f49d29b9edb28fe85d1917f03d1975eb55e3432..84a213a5eadd2e1f7796c81fd38a8d5e1f18de68 100644 (file)
@@ -39,6 +39,7 @@ func Logger() gin.HandlerFunc {
                l = l.WithField("path", path)
 
                msgLog := fmt.Sprintf("[%v] %d %s '%s'", latency, code, c.Request.Method, path)
+               log.Infof(msgLog)
 
                var level logrus.Level
                switch {