From b996635a914f9d6a0245e0236fdbc3e1e9ecf22f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 10 Sep 2012 14:44:54 +0200 Subject: [PATCH] Report version number at startup. --- icinga-app/icinga.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 4356cebad..5f4de4dd5 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -21,9 +21,11 @@ #ifndef _WIN32 # include "icinga-version.h" -# define ICINGA_VERSION GIT_MESSAGE +# define ICINGA_VERSION VERSION ", " GIT_MESSAGE # include +#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; -- 2.50.1