Aller au contenu

Error Not Logged With Object (ARCH9159)

Ce contenu n’est pas encore disponible dans votre langue.

Key swift.logging.error-not-logged-with-object · Severity warning · Category logging

Flags catch blocks that log a message without the error - nothing about the failure reaches the log.

catch { logger.error("upload failed") }
catch { logger.error("upload failed: \(error)") }

Include the error in the log call.