Skip to content

Commit

Permalink
log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Guo committed Dec 13, 2024
1 parent d01c4df commit 30e3d9d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/java/org/apache/cassandra/service/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1544,11 +1544,7 @@ private void setMode(Mode m, boolean log)
void setMode(Mode m, @Safe String msg, boolean log)
{
if (operationMode == Mode.NON_TRANSIENT_ERROR && m != Mode.NON_TRANSIENT_ERROR) {
if (log)
logger.warn("Attempted to change mode from NTE to non-NTE", SafeArg.of("attemptedSetMode", m), SafeArg.of("msg", msg));
else
logger.debug("Attempted to change mode from NTE to non-NTE", SafeArg.of("attemptedSetMode", m), SafeArg.of("msg", msg));
return;
logger.warn("Attempted to change mode from NTE to non-NTE", SafeArg.of("attemptedSetMode", m), SafeArg.of("msg", msg));
}
operationMode = m;
if (log)
Expand Down

0 comments on commit 30e3d9d

Please sign in to comment.