diff --git a/indra/llcommon/llerror.h b/indra/llcommon/llerror.h index ebca19409f1ebdabc0804ad9d04f96eff1747bbf..3fa702022c5bb41e4338272fb1581485747dd30a 100644 --- a/indra/llcommon/llerror.h +++ b/indra/llcommon/llerror.h @@ -451,10 +451,6 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG; #define LL_INFOS_ONCE(...) lllog(LLError::LEVEL_INFO, true, ##__VA_ARGS__) #define LL_WARNS_ONCE(...) lllog(LLError::LEVEL_WARN, true, ##__VA_ARGS__) -// Use this if you need to pass LLError::ELevel as a variable. -#define LL_VLOGS(level, ...) llvlog(level, false, ##__VA_ARGS__) -#define LL_VLOGS_ONCE(level, ...) llvlog(level, true, ##__VA_ARGS__) - // The problem with using lllog() with a variable level is that the first time // through, it initializes a static CallSite instance with whatever level you // pass. That first level is bound into the CallSite; the level parameter is @@ -493,6 +489,10 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG; LLError::CallSite& _site(_sites[which]); \ lllog_test_() +// Use this if you need to pass LLError::ELevel as a variable. +#define LL_VLOGS(level, ...) llvlog(level, false, ##__VA_ARGS__) +#define LL_VLOGS_ONCE(level, ...) llvlog(level, true, ##__VA_ARGS__) + // Check at run-time whether logging is enabled, without generating output bool debugLoggingEnabled(const std::string& tag);