Update errors to make sure we return the real error.
[awesomized/libmemcached] / libtest / server_container.cc
index 5e081f62776c1627c44f008f95ba15ee5ac7506d..17dd6d445f849cc834f82e8c2c2292bf218488e7 100644 (file)
@@ -294,9 +294,14 @@ bool server_startup_st::start_server(const std::string& server_type, in_port_t t
       {
         if (opt_startup_message)
         {
-          Outn();
-          Out << "STARTING SERVER(pid:" << server->pid() << "): " << server->running();
-          Outn();
+#if defined(DEBUG)
+          if (DEBUG)
+          {
+            Outn();
+            Out << "STARTING SERVER(pid:" << server->pid() << "): " << server->running();
+            Outn();
+          }
+#endif
         }
       }
   }
@@ -397,9 +402,14 @@ bool server_startup_st::start_socket_server(const std::string& server_type, cons
     {
       if (opt_startup_message)
       {
-        Outn();
-        Out << "STARTING SERVER(pid:" << server->pid() << "): " << server->running();
-        Outn();
+#if defined(DEBUG)
+        if (DEBUG)
+        {
+          Outn();
+          Out << "STARTING SERVER(pid:" << server->pid() << "): " << server->running();
+          Outn();
+        }
+#endif
       }
     }
   }