Report version number at startup.

This commit is contained in:
Gunnar Beutner 2012-09-10 14:44:54 +02:00
parent 8e4bdf3872
commit b996635a91
1 changed files with 3 additions and 5 deletions

View File

@ -21,9 +21,11 @@
#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;