UAST
Log condition does not match logging call
Warning
Reliability
New
Last modified: 03 December 2024 Reports is log enabled for conditions of if
statements that do not match the log level of the contained logging call.
For example:
if (LOG.isTraceEnabled()) {
// debug level logged, but checked for trace level
LOG.debug("some log message");
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
LoggingConditionDisagreesWithLogLevelStatement
This inspection understands the java.util.logging, Log4j, Log4j2, Apache Commons Logging and the SLF4J logging frameworks.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?