summaryrefslogtreecommitdiff
path: root/internal/log
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-27 13:26:45 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-27 13:26:45 +0200
commitadd6eb6e2bb31b28882a5dc72ad143bccd712e99 (patch)
tree358b7300123cd260dc4e03fc545faafb5cab3308 /internal/log
parentfix new tx within tx (#163) (diff)
downloadgotosocial-add6eb6e2bb31b28882a5dc72ad143bccd712e99.tar.xz
Gin logging (#165)
* start messing around with logger * more messing about * fix error with instance not created on startup (#156) * set logger * log user agent * finalize logging * go fmt * start messing around with logger * more messing about * set logger * log user agent * finalize logging * go fmt
Diffstat (limited to 'internal/log')
-rw-r--r--internal/log/log.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/log/log.go b/internal/log/log.go
index 03553606b..2e1afdb52 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -46,6 +46,7 @@ func New(level string) (*logrus.Logger, error) {
log.SetFormatter(&logrus.TextFormatter{
DisableColors: true,
+ ForceQuote: true,
FullTimestamp: true,
})