Hi Everyone,
It can be annoying that Knox doesn't always log stacktraces for
exceptions by default. To get stack traces into the log you probably
need to change the logging level to someting finer like DEBUG. The
log4j.properties file in a Knox install (i.e.
{GATEWAY_HOME}/conf/log4j.properties) already has a logger configuration
that you can enabled. If you change this don't forget to restart the
server.
I also say "probably" above because it depends on how your log messages
are defined. Take a look at this example from GatewayMessages.
@Message( level = MessageLevel.FATAL, text = "Failed to start
gateway: {0}" )
void failedToStartGateway( @StackTrace( level = MessageLevel.DEBUG )
Exception e );
The @StackTrace( level = MessageLevel.DEBUG ) tells the logging
framework to only log the stack trace if the debug level is DEBUG or
finer. This level could be set to anything equal to or finer than the
message level itself. In practice the @StackTrace level appears to be
typically set to DEBUG.
Hope this helps someone.
Kevin.
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.