Permalink
Browse files

minor log file string concat cleanup

  • Loading branch information...
1 parent d47b5be commit 6865eb4a961a6c56ecbd97b32c1c974b3284416e @zznate committed Mar 6, 2013
@@ -36,7 +36,7 @@ public IntraHandlerRest(Vertx vertx) {
public void handleRequestAsync(final HttpServerRequest request, Buffer buffer) {
Map<String,String> reqParams = request.params();
- logger.debug("Rest request [" + request.method + "] : [" + reqParams + "]");
+ logger.debug("Rest request [{}] : [{}]", request.method , reqParams);
try {
@@ -60,13 +60,16 @@ public static IntraReq getReadOperation(HttpServerRequest request, Buffer buffer
String col = request.params().get(IntraHandlerRest.COLUMN);
IntraReq req = new IntraReq();
- log.debug("ReadOperation @ ks=[" + ks + "], cf=" + cf + "], row=[" + row + "], col=[" + col + "]");
+ if ( log.isDebugEnabled()) {
+ log.debug("ReadOperation @ ks=[{}], cf=[{}], row=[{}], col=[{}]",
+ new Object[]{ks, cf, row, col});
+ }
if (ks == null){
log.debug("Listing keyspaces.");
req.add(Operations.listKeyspacesOp());
} else if (ks != null) {
- log.debug("Listing column families for [" + ks + "]");
+ log.debug("Listing column families for [{}]",ks);
req.add(Operations.listColumnFamilyOp(ks));
}
return req;

0 comments on commit 6865eb4

Please sign in to comment.