mirror of
https://github.com/monero-project/monero.git
synced 2025-08-12 22:25:37 -04:00
Reduced executable size; reduced call sequence to "allowed" log function
This commit is contained in:
parent
0b6bfb1fd8
commit
0f2b5af0dd
3 changed files with 34 additions and 17 deletions
|
@ -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; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue