]> granicus.if.org Git - icinga2/commitdiff
Fix troubleshoot not writing everything to file
authorJean-Marcel Flach <jean-marcel.flach@netways.de>
Wed, 25 Feb 2015 10:08:05 +0000 (11:08 +0100)
committerJean-Marcel Flach <jean-marcel.flach@netways.de>
Wed, 25 Feb 2015 10:08:55 +0000 (11:08 +0100)
lib/cli/troubleshootcommand.cpp

index c69669812a87fba8707bb1d7d4004ce494fa0748..a6a9a3cc019f45d8d85d36cb06664def5ca25dc1 100644 (file)
@@ -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;
 }