Skip to content
Snippets Groups Projects
Commit f0612f6f authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Allow CaptureLog's consumer to specify desired log level.

Of course, given the way the log machinery works, it's really "everything at
that level or stronger."
parent c8032de9
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ struct WrapLL_ERRS
class CaptureLog : public LLError::Recorder
{
public:
CaptureLog():
CaptureLog(LLError::ELevel level=LLError::LEVEL_DEBUG):
// Mostly what we're trying to accomplish by saving and resetting
// LLError::Settings is to bypass the default RecordToStderr and
// RecordToWinDebug Recorders. As these are visible only inside
......@@ -100,7 +100,7 @@ class CaptureLog : public LLError::Recorder
mOldSettings(LLError::saveAndResetSettings())
{
LLError::setFatalFunction(wouldHaveCrashed);
LLError::setDefaultLevel(LLError::LEVEL_DEBUG);
LLError::setDefaultLevel(level);
LLError::addRecorder(this);
}
......
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