aboutsummaryrefslogtreecommitdiffstats
path: root/logging
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-24 21:42:14 +0100
committerRobin Jarry <robin@jarry.cc>2022-12-02 22:10:42 +0100
commit3cd69ee953b169cf2e61b70948582df4a75cffc5 (patch)
tree8f2069cf69d24d380019b2499f4eca8032f7ffb0 /logging
parent9a46e693cb4d1087ad68cb8ea0d1f01652a76fe5 (diff)
downloadaerc-3cd69ee953b169cf2e61b70948582df4a75cffc5.tar.gz
logging: use local time for logging
I don't see a point in logging with UTC time. Also, it can be confusing since this is not explicit in the date format. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'logging')
-rw-r--r--logging/logger.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging/logger.go b/logging/logger.go
index da548c07..8dc4ef6b 100644
--- a/logging/logger.go
+++ b/logging/logger.go
@@ -29,7 +29,7 @@ var (
func Init(file *os.File, level LogLevel) {
minLevel = level
- flags := log.Ldate | log.Ltime | log.Lmicroseconds | log.Lshortfile | log.LUTC
+ flags := log.Ldate | log.Ltime | log.Lmicroseconds | log.Lshortfile
if file != nil {
trace = log.New(file, "TRACE ", flags)
dbg = log.New(file, "DEBUG ", flags)