تخطَّ إلى المحتوى

Error Not Logged With Object (ARCH9159)

هذا المحتوى غير متوفر بلغتك بعد.

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.