Commit b971b1a5453c7aa47e36ae92b78b3166224796d4

Authored by Wiebe Cazemier
1 parent 65f143f8

Show version on start

main.cpp
... ... @@ -82,7 +82,7 @@ int main(int argc, char *argv[])
82 82 Logger *logger = Logger::getInstance();
83 83 mainApp = MainApp::getMainApp();
84 84 check<std::runtime_error>(register_signal_handers());
85   - logger->logf(LOG_NOTICE, "Starting FlashMQ");
  85 + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s", VERSION);
86 86 mainApp->start();
87 87 }
88 88 catch (ConfigFileException &ex)
... ...
mainapp.cpp
... ... @@ -31,8 +31,6 @@ License along with FlashMQ. If not, see &lt;https://www.gnu.org/licenses/&gt;.
31 31  
32 32 #define MAX_EVENTS 1024
33 33  
34   -#define VERSION "0.6.2"
35   -
36 34 MainApp *MainApp::instance = nullptr;
37 35  
38 36 void do_thread_work(ThreadData *threadData)
... ...
mainapp.h
... ... @@ -42,6 +42,8 @@ License along with FlashMQ. If not, see &lt;https://www.gnu.org/licenses/&gt;.
42 42 #include "scopedsocket.h"
43 43 #include "oneinstancelock.h"
44 44  
  45 +#define VERSION "0.6.2"
  46 +
45 47 class MainApp
46 48 {
47 49 static MainApp *instance;
... ...