X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fmemcached.cc;h=c5358bf53fa5da4bdf4b6b7c68f777bddd87c873;hb=5c6b70d0a6c5670e1d4990dfcd45f3fbf79dbb9c;hp=6f81dd6c790b696974ab087ad9cb16f4d93ae526;hpb=9dc6d5dd46302302b8683ed88908d7e6a86a3acf;p=awesomized%2Flibmemcached diff --git a/libtest/memcached.cc b/libtest/memcached.cc index 6f81dd6c..c5358bf5 100644 --- a/libtest/memcached.cc +++ b/libtest/memcached.cc @@ -123,7 +123,7 @@ public: // Memcached is slow to start, so we need to do this if (not pid_file().empty()) { - if (not wait_for_pidfile()) + if (wait_for_pidfile() == false) { Error << "Pidfile was not found:" << pid_file(); return -1; @@ -320,6 +320,22 @@ public: return true; } + void log_file_option(Application& app, const std::string& arg) + { + if (arg.empty() == false) + { + std::string buffer("--log-file="); + buffer+= arg; + app.add_option("--verbose"); + app.add_option(buffer); + } + } + + bool has_log_file_option() const + { + return true; + } + bool build(size_t argc, const char *argv[]); };