]> granicus.if.org Git - icinga2/commitdiff
Americaniz(s)e colo(u)r in troubleshoot cli
authorJean Flach <jean-marcel.flach@netways.de>
Mon, 2 Mar 2015 15:37:07 +0000 (16:37 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Mon, 2 Mar 2015 15:42:38 +0000 (16:42 +0100)
lib/cli/troubleshootcommand.cpp

index 6a99e8909a40d712b2eb0aa53036af802b01e45d..d4b0a32c814abcb2955d97765f0a1534010b4b05 100644 (file)
@@ -81,7 +81,7 @@ public:
                delete m_Stream;
        }
 
-       void WriteLine(const LogSeverity sev, const int colour, const String& str)
+       void WriteLine(const LogSeverity sev, const int color, const String& str)
        {
                if (!m_Console)
                        Log(sev, "troubleshoot", str);
@@ -100,7 +100,7 @@ public:
                            << ConsoleColorTag(Console_Normal, m_ConsoleType);
                } else
                        *m_Stream
-                           << ConsoleColorTag(colour, m_ConsoleType) << str
+                           << ConsoleColorTag(color, m_ConsoleType) << str
                            << ConsoleColorTag(Console_Normal, m_ConsoleType);
        }
 
@@ -119,7 +119,7 @@ class TroubleshootCommand::InfoLogLine
 {
 public:
        InfoLogLine(InfoLog& log, int col = Console_Normal, LogSeverity sev = LogInformation)
-               : m_Log(log), m_Sev(sev), m_Color(col) {}
+               : m_Log(log), m_Color(col), m_Sev(sev) {}
 
        ~InfoLogLine(void)
        {
@@ -136,8 +136,8 @@ public:
 private:
        std::ostringstream m_String;
        InfoLog& m_Log;
-       LogSeverity m_Sev;
        int m_Color;
+       LogSeverity m_Sev;
 };