From 00f4950a179d7f1f788faa4d6ba9c75d6f04c58b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 26 Oct 2026 18:12:50 +0000 Subject: [PATCH] minor cleanup --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 0d29f61..7d24fd8 100644 --- a/app/app.go +++ b/app/app.go @@ -18,8 +18,8 @@ import ( func Run() { configPath := flag.String("config", "config.json", "path to config.json file") flag.Parse() - common.Global = common.GetConfig(*configPath) + log.Printf("Read in config from %s\n", *configPath) // setup http router router := http.NewServeMux() @@ -48,7 +48,7 @@ func Run() { server := LoggingMiddleware(router) // run on all interfaces with port - log.Fatal("[ERR ] starting gin router: ", http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", common.Global.Port), server)) + log.Fatal("[ERR ] starting gin router: %s", http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", common.Global.Port), server)) } // setup static resources under web (css, images, modules, scripts)