From 6de70123be705a467f704e704f194e5c37b30a7c Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 24 Feb 2016 16:24:29 +0100 Subject: [PATCH] PR comments: abort on wrong invalid level, formatter passing. --- Applications/ApplicationsLib/LogogSetup.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/ApplicationsLib/LogogSetup.h b/Applications/ApplicationsLib/LogogSetup.h index 415b6c190ff..81b03d61275 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(); } } -- GitLab