From 5f54406057ae5b96728484ded84fb9b45c5fa530 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 13 Dec 2013 17:37:00 +0100 Subject: [PATCH] Log commands and their arguments. Fixes #5225 --- lib/base/process.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/base/process.cpp b/lib/base/process.cpp index 1df048e38..6476dda75 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -21,13 +21,17 @@ #include "base/process.h" #include "base/array.h" #include "base/objectlock.h" +#include "base/logger_fwd.h" #include +#include using namespace icinga; Process::Process(const std::vector& 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 Process::SplitCommand(const Value& command) {