mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01:00
Make msgwriter logs go to file only
This was the case for monero-wallet-cli already, but not for monerod, which was making it pretty spammy as it was duplicating intended output. Since my original intent was to ensure logs included command output for debugging, this achieves both.
This commit is contained in:
parent
ab594cfee9
commit
58f3fc68e4
@ -60,6 +60,7 @@
|
||||
#define MCDEBUG(cat,x) CLOG(DEBUG,cat) << x
|
||||
#define MCTRACE(cat,x) CLOG(TRACE,cat) << x
|
||||
#define MCLOG(level,cat,x) ELPP_WRITE_LOG(el::base::Writer, level, el::base::DispatchAction::NormalLog, cat) << x
|
||||
#define MCLOG_FILE(level,cat,x) ELPP_WRITE_LOG(el::base::Writer, level, el::base::DispatchAction::FileOnlyLog, cat) << x
|
||||
|
||||
#define MCLOG_COLOR(level,cat,color,x) MCLOG(level,cat,"\033[1;" color "m" << x << "\033[0m")
|
||||
#define MCLOG_RED(level,cat,x) MCLOG_COLOR(level,cat,"31",x)
|
||||
|
@ -91,7 +91,7 @@ public:
|
||||
{
|
||||
m_flush = false;
|
||||
|
||||
MCLOG(m_log_level, "msgwriter", m_oss.str());
|
||||
MCLOG_FILE(m_log_level, "msgwriter", m_oss.str());
|
||||
|
||||
if (epee::console_color_default == m_color)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user