diff --git a/main.cpp b/main.cpp index 05c9c13..d405ae7 100644 --- a/main.cpp +++ b/main.cpp @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) Logger *logger = Logger::getInstance(); mainApp = MainApp::getMainApp(); check(register_signal_handers()); - logger->logf(LOG_NOTICE, "Starting FlashMQ"); + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s", VERSION); mainApp->start(); } catch (ConfigFileException &ex) diff --git a/mainapp.cpp b/mainapp.cpp index 4b7d909..c037a18 100644 --- a/mainapp.cpp +++ b/mainapp.cpp @@ -31,8 +31,6 @@ License along with FlashMQ. If not, see . #define MAX_EVENTS 1024 -#define VERSION "0.6.2" - MainApp *MainApp::instance = nullptr; void do_thread_work(ThreadData *threadData) diff --git a/mainapp.h b/mainapp.h index 6a34da8..0747427 100644 --- a/mainapp.h +++ b/mainapp.h @@ -42,6 +42,8 @@ License along with FlashMQ. If not, see . #include "scopedsocket.h" #include "oneinstancelock.h" +#define VERSION "0.6.2" + class MainApp { static MainApp *instance;