Exception Not Logged With Object (ARCH8159)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key kotlin.logging.exception-not-logged-with-object · Severity warning · Category logging
Flags log calls inside catch that pass only a message - the exception object with its stack trace never reaches the log.
Incorrect
Section titled “Incorrect”catch (e: IOException) { log.error("upload failed") }Correct
Section titled “Correct”catch (e: IOException) { log.error("upload failed", e) }Pass the exception as the last argument.