Skip to content

Commit

Permalink
NO-JIRA Adding log.warn on AMQPMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Aug 9, 2019
1 parent 3ed455c commit f303cd7
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -71,10 +71,13 @@
import io.netty.buffer.ByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.Unpooled;
import org.jboss.logging.Logger;

// see https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#section-message-format
public class AMQPMessage extends RefCountMessage {

private static final Logger logger = Logger.getLogger(AMQPMessage.class);

public static final SimpleString ADDRESS_PROPERTY = SimpleString.toSimpleString("_AMQ_AD");

public static final int DEFAULT_MESSAGE_FORMAT = 0;
Expand Down Expand Up @@ -692,6 +695,7 @@ public ICoreMessage toCore(CoreMessageObjectPools coreMessageObjectPools) {
return AmqpCoreConverter.toCore(
this, coreMessageObjectPools, header, messageAnnotations, properties, lazyDecodeApplicationProperties(), getBody(), getFooter());
} catch (Exception e) {
logger.warn(e.getMessage(), e);
throw new RuntimeException(e.getMessage(), e);
}
}
Expand Down

0 comments on commit f303cd7

Please sign in to comment.