diff --git a/Applications/ApplicationsLib/LogogSetup.h b/Applications/ApplicationsLib/LogogSetup.h index 415b6c190ffc2bb63196aacc16c0d34c38dea87b..81b03d612756c7f6f5006ec5a7c4411e09ea45c6 100644 --- a/Applications/ApplicationsLib/LogogSetup.h +++ b/Applications/ApplicationsLib/LogogSetup.h @@ -41,7 +41,7 @@ public: LOGOG_SHUTDOWN(); } - void SetFormatter(std::unique_ptr<logog::Formatter> formatter) + void SetFormatter(std::unique_ptr<logog::Formatter>&& formatter) { fmt = std::move(formatter); logog_cout->SetFormatter(*fmt); @@ -73,8 +73,8 @@ public: SetLevel(foo[level]); else { - ERR("%s is not a valid log level! Setting log level to all.", level.c_str()); - SetLevel(LOGOG_LEVEL_ALL); + ERR("%s is not a valid log level! Aborting.", level.c_str()); + std::abort(); } }