summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-28 11:53:07 -0400
committerdemo <demo@antix1>2026-05-28 11:53:07 -0400
commit8d3bf78303a42fdf7289c6e1896e3d3f7e9b1cb7 (patch)
tree1f866a1a3e20ab6aa6445278058512f07a8a20e5
parent2e4b6abc07036df7a001b1b8305edc55f27dda9f (diff)
docs: add comment explaining purpose of log.Lshortfile
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index de2456f..cd71cd1 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,8 @@ import (
)
func main() {
+ // Setting shorfile helps especially for when we log errors
+ // without returning them.
log.SetFlags(log.LstdFlags | log.Lshortfile)
maxConcurrency := flag.Int("c", 0, "Maximum number of concurrent queue pushes")