From: Jean-Marcel Flach Date: Wed, 25 Feb 2015 10:08:05 +0000 (+0100) Subject: Fix troubleshoot not writing everything to file X-Git-Tag: v2.3.0~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd6691537b8535b7d8c0d79ccfec21124be98377;p=icinga2 Fix troubleshoot not writing everything to file --- diff --git a/lib/cli/troubleshootcommand.cpp b/lib/cli/troubleshootcommand.cpp index c69669812..a6a9a3cc0 100644 --- a/lib/cli/troubleshootcommand.cpp +++ b/lib/cli/troubleshootcommand.cpp @@ -64,6 +64,11 @@ public: } } + ~InfoLog(void) + { + delete m_Stream; + } + void WriteLine(const LogSeverity sev, const String& str) { if (!m_Console) @@ -95,7 +100,7 @@ public: InfoLogLine(InfoLog& log, LogSeverity sev = LogInformation) : m_Log(log), m_Sev(sev) {} - ~InfoLogLine() + ~InfoLogLine(void) { m_Log.WriteLine(m_Sev, m_String.str()); } @@ -139,7 +144,7 @@ bool TroubleshootCommand::GeneralInfo(InfoLog& log, const boost::program_options bool TroubleshootCommand::FeatureInfo(InfoLog& log, const boost::program_options::variables_map& vm) { TroubleshootCommand::CheckFeatures(log); - //TODO Check whether active faetures are operational. + //TODO Check whether active features are operational. return true; }