From 3439ec7c2a554ed4f28cf4cb8177b91e7fbb1d3c Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 1 May 2023 15:47:39 +0200 Subject: [PATCH] app: set devel mode earlier --- run.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.go b/run.go index 219af37..fedf563 100644 --- a/run.go +++ b/run.go @@ -108,6 +108,10 @@ func run() error { return err } + if *devel { + a.SetDevel() + } + a.PrintConfiguration() a.SetupRoutes() @@ -117,10 +121,6 @@ func run() error { // a.SetConfig(conf) a.SetEmbeds(templates, assets) - if *devel { - a.SetDevel() - } - // // TODO: add check for prometheus config setting. // if true { // // import "github.com/labstack/echo-contrib/prometheus"