1
0

Set log to print just a long path to file and line where an error occured.

This commit is contained in:
Alexander Andreev 2023-05-22 21:31:33 +04:00
parent a3b25f7ea5
commit 668075cbe2
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -34,6 +34,8 @@ func main() {
return
}
log.SetFlags(log.Llongfile)
var network string
if !strings.ContainsRune(*listenAddress, ':') {
network = "unix"