Reduced verbosity
authorPeter Iannucci <iannucci@mit.edu>
Fri, 11 Oct 2013 17:04:13 +0000 (13:04 -0400)
committerPeter Iannucci <iannucci@mit.edu>
Fri, 11 Oct 2013 17:04:13 +0000 (13:04 -0400)
rpc/rpc.cc

index c417f40..471a5da 100644 (file)
@@ -341,7 +341,7 @@ rpcs::rpcs(in_port_t p1, size_t count)
 {
     set_rand_seed();
     nonce_ = (unsigned int)random();
-    IF_LEVEL(0) LOG("created with nonce " << nonce_);
+    IF_LEVEL(2) LOG("created with nonce " << nonce_);
 
     reg(rpc_const::bind, &rpcs::rpcbind, this);
     dispatchpool_ = unique_ptr<ThrPool>(new ThrPool(6, false));
@@ -479,9 +479,8 @@ void rpcs::dispatch(shared_ptr<connection> c, const string & buf) {
 
     switch (stat) {
         case NEW: // new request
-            if (counting_){
+            if (counting_)
                 updatestat(proc);
-            }
 
             rh.ret = (*f)(req, rep);
             if (rh.ret == rpc_const::unmarshal_args_failure) {
@@ -612,7 +611,7 @@ void rpcs::free_reply_window(void) {
 }
 
 int rpcs::rpcbind(unsigned int &r, int) {
-    IF_LEVEL(0) LOG("called return nonce " << nonce_);
+    IF_LEVEL(2) LOG("called return nonce " << nonce_);
     r = nonce_;
     return 0;
 }