Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sonic MQ error logs

 
Alita Bear
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application that makes use of the Sonic library. My question is, does anyone know how not to show Sonic errors in the console? An example is when I try to create a progress.message.jclient.TopicConnectionFactory when the Sonic server is down. I have something like this in my code:

try {
topicConnectionFactory = new progress.message.jclient.TopicConnectionFactory();
topicConnection = topicConnectionFactory.createTopicConnection(username, password);
} catch (Exception e) {
getLogger().log(Level.FINER,"Problem in connecting, "e);
}

When the Sonic broker is down, I was expecting to just get the FINER log from my class's logger but I get this extraneous log:

[103] progress.message.client.EUnknownBrokerHost: java.net.UnknownHostException:
<my host name>:https://<my host name>:<its port number>
at progress.message.zclient.Connection.WPB_(Unknown Source)
at progress.message.zclient.Connection.connectWithRecoveryOpt(Unknown So
urce)
at progress.message.zclient.ReconnectHelper.connectAndChaseSingleFailove
rRedirect(Unknown Source)
at progress.message.zclient.ReconnectHelper.connect(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.LV_(Unknown Source)
at progress.message.zclient.FaultTolerantDropHandler.socketDropped(Unkno
wn Source)
at progress.message.zclient.Connection.qPB_(Unknown Source)
at progress.message.zclient.ClientListener.hBC_(Unknown Source)
at progress.message.zclient.ClientListener.gBC_(Unknown Source)
at progress.message.zclient.ClientListener.threadMain(Unknown Source)
at progress.message.zclient.DebugThread.run(Unknown Source)


before my FINER log. Are Sonic errors by default logged to the console? Is there a way to suppress all of these messages?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic