Skip to content

Commit 97ded1d

Browse files
committed
Polishing
1 parent 30bd582 commit 97ded1d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

spring-context/src/main/java/org/springframework/context/annotation/AdviceMode.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,6 +27,9 @@
2727
* @see org.springframework.transaction.annotation.EnableTransactionManagement#mode()
2828
*/
2929
public enum AdviceMode {
30+
3031
PROXY,
32+
3133
ASPECTJ
34+
3235
}

spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ protected void sendMessageToSubscribers(@Nullable String destination, Message<?>
364364
getClientOutboundChannel().send(reply);
365365
}
366366
catch (Throwable ex) {
367-
logger.error("Failed to send " + message, ex);
367+
if (logger.isErrorEnabled()) {
368+
logger.error("Failed to send " + message, ex);
369+
}
368370
}
369371
finally {
370372
SessionInfo info = this.sessions.get(subscriptionEntry.getKey());

0 commit comments

Comments
 (0)