summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-03-01 17:30:50 -0500
committerNat Goodspeed <nat@lindenlab.com>2012-03-01 17:30:50 -0500
commitf0612f6fc424ab4726ef187f41a257c0abdd1d34 (patch)
tree802f053a37cefea4113d24915c8be0c87d2736bc /indra
parentc8032de94e7fcad3cc8ce45db2d20cb1664ebea9 (diff)
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."
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/tests/wrapllerrs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/tests/wrapllerrs.h b/indra/llcommon/tests/wrapllerrs.h
index 28ffbf517f..10cf25b39e 100644
--- a/indra/llcommon/tests/wrapllerrs.h
+++ b/indra/llcommon/tests/wrapllerrs.h
@@ -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 @@ public:
mOldSettings(LLError::saveAndResetSettings())
{
LLError::setFatalFunction(wouldHaveCrashed);
- LLError::setDefaultLevel(LLError::LEVEL_DEBUG);
+ LLError::setDefaultLevel(level);
LLError::addRecorder(this);
}