From: Brian Aker Date: Thu, 13 Dec 2012 09:12:08 +0000 (-0500) Subject: Update to make DEBUG for server. X-Git-Tag: 1.0.15~4^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cdca8cca3bd30c5424793b202551c84123e7129b;p=m6w6%2Flibmemcached Update to make DEBUG for server. --- diff --git a/libtest/cmdline.cc b/libtest/cmdline.cc index df022158..43e5ef2d 100644 --- a/libtest/cmdline.cc +++ b/libtest/cmdline.cc @@ -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 { diff --git a/libtest/server_container.cc b/libtest/server_container.cc index 5e081f62..17dd6d44 100644 --- a/libtest/server_container.cc +++ b/libtest/server_container.cc @@ -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 } } }