diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-02-23 18:26:34 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-02-23 18:26:34 -0800 |
commit | a9f0fdaf22459b338c4958083b2b52e674bdffca (patch) | |
tree | 0ea19824d21ee3cfff919c95b47b0540c1bb5a33 /cli | |
parent | 73a0a25b6cf9e2b11476c9b6504c69e7d33f4ccc (diff) |
Print info message if DATABASE_URL is not set
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) } |