Commit e8e10352e09371f5fb2d80431d7d7a3f9e64e318
1 parent
86faace8
Show build type in startup message
Showing
1 changed file
with
5 additions
and
1 deletions
main.cpp
| @@ -82,7 +82,11 @@ int main(int argc, char *argv[]) | @@ -82,7 +82,11 @@ 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 version %s", VERSION); | 85 | +#ifdef NDEBUG |
| 86 | + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, release build.", VERSION); | ||
| 87 | +#else | ||
| 88 | + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, debug build.", VERSION); | ||
| 89 | +#endif | ||
| 86 | mainApp->start(); | 90 | mainApp->start(); |
| 87 | } | 91 | } |
| 88 | catch (ConfigFileException &ex) | 92 | catch (ConfigFileException &ex) |