From cdca8cca3bd30c5424793b202551c84123e7129b Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 13 Dec 2012 04:12:08 -0500 Subject: [PATCH] Update to make DEBUG for server. --- libtest/cmdline.cc | 11 ++++++++--- libtest/server_container.cc | 22 ++++++++++++++++------ 2 files changed, 24 insertions(+), 9 deletions(-) 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 } } } -- 2.30.2