“System.debug” First Parameter Has To Be Logging Level

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID #

SF-SYS-DEBUG

Impact

“System debug” has to set Logging level as first parameter. Having the Logging level specified provides a cleaner log and improves readability of it.

Remediation

Add Logging level as first parameter in “System.debug” method.

Time to fix

10 min

Was it helpful ?
Table of contents

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!