singleton
singleton copied to clipboard
[IMPROVEMENTS] Use blocks to log messages of debug level
In production env, the log level is INFO
usually. But in current code, each log message is computed when executing the code line even though the set log level is higher than the level of log message.
Sugest to use a block to compute message. This way, don't need to compute the message values if level of message is under set log level.