From cfa915142c2bbff8d1572488b6343e56dfef9b64 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Tue, 12 Jan 2021 16:57:26 -0800 Subject: Segregate BindAddr and BaseURL --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index e66f6e4..9d5c148 100644 --- a/main.go +++ b/main.go @@ -27,8 +27,8 @@ func main() { env := environment.New() app := handlers.MiddlewareChain(env).Then(router.ShoelacesRouter(env)) - env.Logger.Info("component", "main", "transport", "http", "addr", env.BaseURL, "msg", "listening") - env.Logger.Error("component", "main", "err", http.ListenAndServe(env.BaseURL, app)) + env.Logger.Info("component", "main", "transport", "http", "addr", env.BindAddr, "msg", "listening") + env.Logger.Error("component", "main", "err", http.ListenAndServe(env.BindAddr, app)) os.Exit(1) } -- cgit v1.2.3