Merge pull request #3344 from opencloud-eu/antivirus-log-error

actually log error on exit
This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2026-08-19 09:39:11 +02:00
commit 6d2cbd365f
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}