1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Print info message if DATABASE_URL is not set

This commit is contained in:
Frédéric Guillot 2018-02-23 18:26:34 -08:00
parent 73a0a25b6c
commit a9f0fdaf22
2 changed files with 17 additions and 5 deletions

View file

@ -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)
}