Skip to content

Commit

Permalink
Move send/receive action messages to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Jul 17, 2015
1 parent 1095eb7 commit 0ecaece
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public class EmailListener extends BasicMessageListener<ActionMessage> {

protected void onBasicMessage(ActionMessage msg) {
try {
msgLog.infoActionReceived(EmailPlugin.PLUGIN_NAME, msg.toString());
log.debug("Action received for plugin [" + EmailPlugin.PLUGIN_NAME + "], " +
"msg = " + msg.toString());
Message message = createMimeMessage(msg);
Transport.send(message);
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ public interface MsgLogger extends BasicLogger {
@Message(id = 210005, value = "Cannot connect to hawkular bus")
void warnCannotConnectToBus();

@LogMessage(level = Logger.Level.INFO)
@Message(id = 210006, value = "Sent action message [%s] to the bus")
void infoSentActionMessage(String msg);

@LogMessage(level = Logger.Level.WARN)
@Message(id = 210007, value = "Cannot access to DefinitionsService")
void warnCannotAccessToDefinitionsService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void process(Action action) {
nMsg.setProperties(properties);
nMsg.setDefaultProperties(defaultProperties);
MessageId mid = new MessageProcessor().send(pcc, nMsg, actionPluginFilter(action.getActionPlugin()));
msgLogger.infoSentActionMessage(mid.getId());
log.debug("Sent action message [" + mid.getId() + "] to the bus");
} else {
msgLogger.warnCannotAccessToDefinitionsService();
}
Expand Down

0 comments on commit 0ecaece

Please sign in to comment.