actually log error on exit

This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2026-08-18 17:17:30 +02:00
1 parent 5056d4a0f4
commit dcd717f83c
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)
}