Commit b971b1a5453c7aa47e36ae92b78b3166224796d4
1 parent
65f143f8
Show version on start
Showing
3 changed files
with
3 additions
and
3 deletions
main.cpp
| @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) | @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) | ||
| 82 | Logger *logger = Logger::getInstance(); | 82 | Logger *logger = Logger::getInstance(); |
| 83 | mainApp = MainApp::getMainApp(); | 83 | mainApp = MainApp::getMainApp(); |
| 84 | check<std::runtime_error>(register_signal_handers()); | 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 | mainApp->start(); | 86 | mainApp->start(); |
| 87 | } | 87 | } |
| 88 | catch (ConfigFileException &ex) | 88 | catch (ConfigFileException &ex) |
mainapp.cpp
| @@ -31,8 +31,6 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. | @@ -31,8 +31,6 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. | ||
| 31 | 31 | ||
| 32 | #define MAX_EVENTS 1024 | 32 | #define MAX_EVENTS 1024 |
| 33 | 33 | ||
| 34 | -#define VERSION "0.6.2" | ||
| 35 | - | ||
| 36 | MainApp *MainApp::instance = nullptr; | 34 | MainApp *MainApp::instance = nullptr; |
| 37 | 35 | ||
| 38 | void do_thread_work(ThreadData *threadData) | 36 | void do_thread_work(ThreadData *threadData) |
mainapp.h
| @@ -42,6 +42,8 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. | @@ -42,6 +42,8 @@ License along with FlashMQ. If not, see <https://www.gnu.org/licenses/>. | ||
| 42 | #include "scopedsocket.h" | 42 | #include "scopedsocket.h" |
| 43 | #include "oneinstancelock.h" | 43 | #include "oneinstancelock.h" |
| 44 | 44 | ||
| 45 | +#define VERSION "0.6.2" | ||
| 46 | + | ||
| 45 | class MainApp | 47 | class MainApp |
| 46 | { | 48 | { |
| 47 | static MainApp *instance; | 49 | static MainApp *instance; |