mirror of https://github.com/Icinga/icinga2.git
Report version number at startup.
This commit is contained in:
parent
8e4bdf3872
commit
b996635a91
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue