all repos — elgit @ 5467d52160ee898bcb58d7af16936bc318df0c85

fork of legit: web frontend for git, written in go

feat: show filename in log messages
Alan Pearce alan@alanpearce.eu
Mon, 31 Mar 2025 18:12:26 +0200
commit

5467d52160ee898bcb58d7af16936bc318df0c85

parent

6341582f87934debe76e53975204945ce64da392

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M main.gomain.go
@@ -15,6 +15,8 @@ var cfg string 	flag.StringVar(&cfg, "config", "./config.yaml", "path to config file")
 	flag.Parse()
 
+	log.SetFlags(log.Lshortfile)
+
 	c, err := config.Read(cfg)
 	if err != nil {
 		log.Fatal(err)