aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 1e5a13a..a427073 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -28,6 +28,11 @@ func Parse() {
flag.Parse()
cfg := config.NewConfig()
+
+ if *flagDebugMode || cfg.HasDebugMode() {
+ logger.EnableDebug()
+ }
+
store := storage.NewStorage(
cfg.DatabaseURL(),
cfg.DatabaseMaxConnections(),
@@ -63,9 +68,5 @@ func Parse() {
return
}
- if *flagDebugMode || cfg.HasDebugMode() {
- logger.EnableDebug()
- }
-
daemon.Run(cfg, store)
}