|
|
|
@@ -60,11 +60,17 @@ func NewServices() { |
|
|
|
if err := storage.Init(); err != nil { |
|
|
|
log.Fatal("storage init failed: %v", err) |
|
|
|
} |
|
|
|
log.Info("storage init succeed.") |
|
|
|
mailer.NewContext() |
|
|
|
log.Info("mailer.NewContext() succeed.") |
|
|
|
_ = cache.NewContext() |
|
|
|
log.Info("cache.NewContext() succeed.") |
|
|
|
notification.NewContext() |
|
|
|
log.Info("notification.NewContext() succeed.") |
|
|
|
decompression.NewContext() |
|
|
|
log.Info("decompression.NewContext() succeed.") |
|
|
|
labelmsg.Init() |
|
|
|
log.Info("labelmsg.Init() succeed.") |
|
|
|
} |
|
|
|
|
|
|
|
// In case of problems connecting to DB, retry connection. Eg, PGSQL in Docker Container on Synology |
|
|
|
|