]> granicus.if.org Git - icinga2/commitdiff
Report version number at startup.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 10 Sep 2012 12:44:54 +0000 (14:44 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 10 Sep 2012 12:44:54 +0000 (14:44 +0200)
icinga-app/icinga.cpp

index 4356cebad3e1569631e0b0326284fc23a360c183..5f4de4dd5989c91d65fc84851a60d3b8f780276a 100644 (file)
 
 #ifndef _WIN32
 #      include "icinga-version.h"
-#      define ICINGA_VERSION GIT_MESSAGE
+#      define ICINGA_VERSION VERSION ", " GIT_MESSAGE
 
 #      include <ltdl.h>
+#else /* _WIN32 */
+#      define ICINGA_VERSION VERSION
 #endif /* _WIN32 */
 
 using namespace icinga;
@@ -49,11 +51,7 @@ int main(int argc, char **argv)
         * in the base library. */
        Application::SetMainThread();
 
-#ifdef _WIN32
-       Logger::Write(LogInformation, "icinga", "Icinga application loader");    
-#else /* _WIN32 */
        Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " ICINGA_VERSION ")");
-#endif  /* _WIN32 */
 
        if (argc < 3 || strcmp(argv[1], "-c") != 0) {
                stringstream msgbuf;