aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/parser.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-06-08 17:16:12 -0700
committerGravatar fguillot <fred@miniflux.net>2019-06-08 17:48:45 -0700
commit91508c50b54c9a0375856a17b2e774d42782b81d (patch)
tree995936a1bf95f1d31da8841e6aef655ffa38f75b /config/parser.go
parentf7b7b63e3f30b4d855a26d550ddf726116c65846 (diff)
Add option to toggle date/time in log messages
Diffstat (limited to 'config/parser.go')
-rw-r--r--config/parser.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/parser.go b/config/parser.go
index 6de4550..7e70db5 100644
--- a/config/parser.go
+++ b/config/parser.go
@@ -71,6 +71,8 @@ func (p *Parser) parseLines(lines []string) (err error) {
value := strings.TrimSpace(fields[1])
switch key {
+ case "LOG_DATE_TIME":
+ p.opts.logDateTime = parseBool(value, defaultLogDateTime)
case "DEBUG":
p.opts.debug = parseBool(value, defaultDebug)
case "BASE_URL":