Commit c3399f29 authored by afreyssin's avatar afreyssin
Browse files

Logging enhancement, keep trace of source exception.

parent 3128fc3b
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2004 - 2012 ScalAgent Distributed Technologies
* Copyright (C) 2004 - 2015 ScalAgent Distributed Technologies
* Copyright (C) 2004 - 2006 Bull SA
*
* This library is free software; you can redistribute it and/or
......@@ -171,8 +171,11 @@ class InboundSession implements javax.jms.ServerSession,
if (endpoint != null) endpoint.release();
} catch (Exception e) {
// ignore the exception
if (logger.isLoggable(BasicLevel.INFO))
logger.log(BasicLevel.INFO, "endpoint.release: ", e);
}
throw new java.lang.IllegalStateException("Could not get endpoint instance: " + exc);
logger.log(BasicLevel.ERROR, "InboundSession.onMessage: ", exc);
throw new java.lang.IllegalStateException("Could not get endpoint instance: ", exc);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment