From b3300da7b4f7d1b3eb316fedfa5a138a97078eab Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Mon, 20 Jul 2020 17:23:25 -0400 Subject: [PATCH] Smol LLError cleanup --- indra/llcommon/llerror.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/indra/llcommon/llerror.h b/indra/llcommon/llerror.h index ebca19409f1..3fa702022c5 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); -- GitLab