1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Log commands and their arguments.

Fixes 
This commit is contained in:
Michael Friedrich 2013-12-13 17:37:00 +01:00
parent f47f7fb8c5
commit 5f54406057

@ -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)
{