diff options
author | Lee Clagett <code@leeclagett.com> | 2021-03-05 22:46:54 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2021-01-16 22:55:41 +0000 |
commit | 0f2b5af0dd4483eb207f50e606b95a774bc438fd (patch) | |
tree | 434fec5c2b1453dcb00746f75a8db56b73f0d6f7 /contrib/epee/include | |
parent | Merge pull request #7399 (diff) | |
download | monero-0f2b5af0dd4483eb207f50e606b95a774bc438fd.tar.xz |
Reduced executable size; reduced call sequence to "allowed" log function
Diffstat (limited to 'contrib/epee/include')
-rw-r--r-- | contrib/epee/include/misc_log_ex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index 3be335e85..392ec11eb 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -41,7 +41,7 @@ #define MAX_LOG_FILES 50 #define MCLOG_TYPE(level, cat, color, type, x) do { \ - if (ELPP->vRegistry()->allowed(level, cat)) { \ + if (el::Loggers::allowed(level, cat)) { \ el::base::Writer(level, color, __FILE__, __LINE__, ELPP_FUNC, type).construct(cat) << x; \ } \ } while (0) @@ -89,7 +89,7 @@ #define IFLOG(level, cat, color, type, init, x) \ do { \ - if (ELPP->vRegistry()->allowed(level, cat)) { \ + if (el::Loggers::allowed(level, cat)) { \ init; \ el::base::Writer(level, color, __FILE__, __LINE__, ELPP_FUNC, type).construct(cat) << x; \ } \ |