Skip to content

Commit

Permalink
PR comments: abort on wrong invalid level, formatter passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Feb 24, 2016
1 parent 759d604 commit bd52bea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Applications/ApplicationsLib/LogogSetup.h
Expand Up @@ -41,7 +41,7 @@ class LogogSetup final
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);
Expand Down Expand Up @@ -73,8 +73,8 @@ class LogogSetup final
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();
}
}

Expand Down

0 comments on commit bd52bea

Please sign in to comment.