Polishing

This commit is contained in:
Juergen Hoeller 2017-09-01 14:05:35 +02:00
parent 30bd5827b0
commit 97ded1dcc7
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2011 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -27,6 +27,9 @@ package org.springframework.context.annotation;
* @see org.springframework.transaction.annotation.EnableTransactionManagement#mode()
*/
public enum AdviceMode {
PROXY,
ASPECTJ
}

View File

@ -364,7 +364,9 @@ public class SimpleBrokerMessageHandler extends AbstractBrokerMessageHandler {
getClientOutboundChannel().send(reply);
}
catch (Throwable ex) {
logger.error("Failed to send " + message, ex);
if (logger.isErrorEnabled()) {
logger.error("Failed to send " + message, ex);
}
}
finally {
SessionInfo info = this.sessions.get(subscriptionEntry.getKey());