mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-12 21:58:58 -04:00
actually log error on exit
This commit is contained in:
1 parent
5056d4a0f4
commit
dcd717f83c
1 file changed
+1
-1
@@ -43,7 +43,7 @@ func Server(cfg *config.Config) *cobra.Command {
|
||||
{
|
||||
svc, err := service.NewAntivirus(cfg, logger, traceProvider)
|
||||
if err != nil {
|
||||
fmt.Errorf("failed to initialize antivirus service: %v", err)
|
||||
logger.Error().Err(err).Str("server", "antivirus").Msg("Failed to initialize antivirus service")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user