Log commands and their arguments.

Fixes #5225
This commit is contained in:
Michael Friedrich 2013-12-13 17:37:00 +01:00
parent f47f7fb8c5
commit 5f54406057
1 changed files with 5 additions and 1 deletions

View File

@ -21,13 +21,17 @@
#include "base/process.h"
#include "base/array.h"
#include "base/objectlock.h"
#include "base/logger_fwd.h"
#include <boost/foreach.hpp>
#include <boost/algorithm/string/join.hpp>
using namespace icinga;
Process::Process(const std::vector<String>& arguments, const Dictionary::Ptr& extraEnvironment)
: m_Arguments(arguments), m_ExtraEnvironment(extraEnvironment), m_Timeout(600)
{ }
{
Log(LogDebug, "base", "Running command '" + boost::algorithm::join(arguments, " ") + "'.");
}
std::vector<String> Process::SplitCommand(const Value& command)
{