Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ISPN-5169 Created a new log message that doesn't say it's going to re…
…move the listener. Changed the other method name so it knows it includes a removing listener message.
  • Loading branch information
Kurt Lehrke authored and tristantarrant committed Jan 27, 2015
1 parent ee7464d commit ecb3609
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -289,7 +289,7 @@ public Void run() throws Exception {
getLog().unableToInvokeListenerMethod(method, target, cause);
}
} catch (IllegalAccessException exception) {
getLog().unableToInvokeListenerMethod(method, target, exception);
getLog().unableToInvokeListenerMethodAndRemoveListener(method, target, exception);
removeListener(target);
} finally {
if (classLoader != null && classLoader.get() != null) {
Expand Down
7 changes: 6 additions & 1 deletion core/src/main/java/org/infinispan/util/logging/Log.java
Expand Up @@ -540,7 +540,7 @@ void preparedTxAlreadyExists(RecoveryAwareTransaction previous,
@LogMessage(level = WARN)
@Message(value = "Unable to invoke method %s on Object instance %s - " +
"removing this target object from list of listeners!", id = 134)
void unableToInvokeListenerMethod(Method m, Object target, @Cause Throwable e);
void unableToInvokeListenerMethodAndRemoveListener(Method m, Object target, @Cause Throwable e);

@LogMessage(level = WARN)
@Message(value = "Could not lock key %s in order to invalidate from L1 at node %s, skipping....", id = 135)
Expand Down Expand Up @@ -1220,4 +1220,9 @@ void asyncStoreShutdownTimeoutTooHigh(long configuredAsyncStopTimeout,
@LogMessage(level = WARN)
@Message(value = "Distributed task failed at %s. The task is failing over to be executed at %s", id = 330)
void distributedTaskFailover(Address failedAtAddress, Address failoverTarget, @Cause Exception e);

@LogMessage(level = WARN)
@Message(value = "Unable to invoke method %s on Object instance %s ", id = 331)
void unableToInvokeListenerMethod(Method m, Object target, @Cause Throwable e);

}

0 comments on commit ecb3609

Please sign in to comment.