diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2015-06-25 16:04:01 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2015-06-25 16:04:01 -0400 |
commit | 0ea1b2a164e0d985c80c8a1afea4b31670efc907 (patch) | |
tree | a3f96265f90f7815909135760ca87fcc2d2b96ed /indra/llui | |
parent | d792baf9f7220a374788b35789335a7ae2e62369 (diff) |
MAINT-5232: Try to avoid circularity between LLError and LLSingleton.
Part of LLError's logging infrastructure is implemented with an LLSingleton.
Therefore, attempts to log from within LLSingleton machinery could potentially
go south if LLError's LLSingleton is not yet initialized.
Introduce LLError::is_available() in llerrorcontrol.h and llerror.cpp.
Make LLSingletonBase::logwarns() and logerrs() consult LLError::is_available()
before attempting to use LL_WARNS or LL_ERRS, respectively.
Moreover, make all LLSingleton internal logging use logwarns() and logerrs()
instead of directly engaging LL_ERRS or LL_WARNS.
Diffstat (limited to 'indra/llui')
0 files changed, 0 insertions, 0 deletions