mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-15 09:57:02 +00:00
log warnings to std::cerr
This commit is contained in:
parent
7002bff4f9
commit
08e58fd325
@ -85,7 +85,9 @@ SnoreLog::~SnoreLog()
|
||||
Loger::logFile() << m_msg << "\n";
|
||||
Loger::logFile().flush();
|
||||
}
|
||||
if (Loger::debugLvl() >= m_lvl) {
|
||||
if (m_lvl == SNORE_WARNING) {
|
||||
std::cerr << m_msg.toLocal8Bit().constData() << std::endl;
|
||||
} else if (Loger::debugLvl() >= m_lvl) {
|
||||
std::cout << m_msg.toLocal8Bit().constData() << std::endl;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user