Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjkeller committed Sep 16, 2024
1 parent ab9aad8 commit 403390d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void checkAndLog(LogRecord record) {
// Do nothing if application_logging.enabled: false
if (isApplicationLoggingEnabled()) {

boolean shouldLog = isLoggable(record.getLevel()) && getFilter() == null || getFilter().isLoggable(record);
boolean shouldLog = isLoggable(record.getLevel()) && (getFilter() == null || getFilter().isLoggable(record));
if (isApplicationLoggingMetricsEnabled() && shouldLog) {
// Generate log level metrics
NewRelic.incrementCounter("Logging/lines");
Expand Down

0 comments on commit 403390d

Please sign in to comment.