Update to make DEBUG for server.
authorBrian Aker <brian@tangent.org>
Thu, 13 Dec 2012 09:12:08 +0000 (04:12 -0500)
committerBrian Aker <brian@tangent.org>
Thu, 13 Dec 2012 09:12:08 +0000 (04:12 -0500)
libtest/cmdline.cc
libtest/server_container.cc

index df0221586fcad72feddfc3bc11d14b688800ab42..43e5ef2d14bc46be2e380f7b8eaf6e3f94f697ef 100644 (file)
@@ -439,9 +439,14 @@ Application::error_t Application::join()
       }
 
       // If we terminted it on purpose then it counts as a success.
-      Out << "waitpid() application terminated at request"
-        << " pid:" << _pid 
-        << " name:" << built_argv[0];
+#if defined(DEBUG)
+      if (DEBUG)
+      {
+        Out << "waitpid() application terminated at request"
+          << " pid:" << _pid 
+          << " name:" << built_argv[0];
+      }
+#endif
     }
     else
     {
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
       }
     }
   }