mirror of
https://github.com/monero-project/monero.git
synced 2025-08-22 13:29:33 -04:00
simplewallet: factor out message_writer
This commit is contained in:
parent
7ed5ab47ea
commit
e499ff3322
2 changed files with 12 additions and 84 deletions
|
@ -117,9 +117,9 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
inline scoped_message_writer success_msg_writer()
|
||||
inline scoped_message_writer success_msg_writer(bool color = true)
|
||||
{
|
||||
return scoped_message_writer(epee::console_color_green, false, std::string(), el::Level::Info);
|
||||
return scoped_message_writer(color ? epee::console_color_green : epee::console_color_default, false, std::string(), el::Level::Info);
|
||||
}
|
||||
|
||||
inline scoped_message_writer msg_writer(epee::console_colors color = epee::console_color_default)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue