Skip to content

Commit

Permalink
Couple more logging improvements
Browse files Browse the repository at this point in the history
 * removed double printing of outgoing message object
 * changed logging of routing procedure response to info level
  • Loading branch information
lutovich committed Nov 23, 2017
1 parent 01f2251 commit 9c4831e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected void encode( ChannelHandlerContext ctx, Message msg, List<Object> out

if ( log.isTraceEnabled() )
{
log.trace( "C: %s encoded as\n%s", msg, prettyHexDump( messageBuf ) );
log.trace( "C:\n%s", prettyHexDump( messageBuf ) );
}

out.add( messageBuf );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ private ClusterCompositionResponse processRoutingResponse( RoutingProcedureRespo
}

List<Record> records = response.records();

if ( log.isDebugEnabled() )
{
log.debug( "Received response from %s procedure: %s", invokedProcedureString( response ), records );
}
log.info( "Received response from %s procedure: %s", invokedProcedureString( response ), records );

long now = clock.millis();

Expand Down

0 comments on commit 9c4831e

Please sign in to comment.