From 668075cbe23c06de173d770d42d08823537b3f3c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 22 May 2023 21:31:33 +0400 Subject: [PATCH] Set log to print just a long path to file and line where an error occured. --- cmd/dwelling-home/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dwelling-home/main.go b/cmd/dwelling-home/main.go index 5980f87..65f3c79 100644 --- a/cmd/dwelling-home/main.go +++ b/cmd/dwelling-home/main.go @@ -34,6 +34,8 @@ func main() { return } + log.SetFlags(log.Llongfile) + var network string if !strings.ContainsRune(*listenAddress, ':') { network = "unix"