Logging reductions.

This commit is contained in:
JoelKatz
2013-02-19 15:41:03 -08:00
parent 7c7944a82c
commit 4d6bf6fd43
5 changed files with 13 additions and 8 deletions

View File

@@ -199,7 +199,12 @@ namespace websocketpp
void websocketLog(websocketpp::log::alevel::value v, const std::string& entry)
{
if (websocketPartition.doLog(lsDEBUG))
if (v == websocketpp::log::alevel::DEVEL)
{
if (websocketPartition.doLog(lsTRACE))
Log(lsDEBUG, websocketPartition) << entry;
}
else if (websocketPartition.doLog(lsDEBUG))
Log(lsDEBUG, websocketPartition) << entry;
}