Skip to content
Snippets Groups Projects
Commit 6de70123 authored by Lars Bilke's avatar Lars Bilke
Browse files

PR comments: abort on wrong invalid level, formatter passing.

parent 570d7f55
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
LOGOG_SHUTDOWN(); LOGOG_SHUTDOWN();
} }
void SetFormatter(std::unique_ptr<logog::Formatter> formatter) void SetFormatter(std::unique_ptr<logog::Formatter>&& formatter)
{ {
fmt = std::move(formatter); fmt = std::move(formatter);
logog_cout->SetFormatter(*fmt); logog_cout->SetFormatter(*fmt);
...@@ -73,8 +73,8 @@ public: ...@@ -73,8 +73,8 @@ public:
SetLevel(foo[level]); SetLevel(foo[level]);
else else
{ {
ERR("%s is not a valid log level! Setting log level to all.", level.c_str()); ERR("%s is not a valid log level! Aborting.", level.c_str());
SetLevel(LOGOG_LEVEL_ALL); std::abort();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment