mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-26 12:58:47 +02:00
update logger
This commit is contained in:
parent
2955b20e9d
commit
ce55f15c02
36 changed files with 967 additions and 389 deletions
|
@ -123,7 +123,7 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
|
|||
{
|
||||
string line = utils::string::trim_copy(string(buffer, n));
|
||||
if ((line.find('\0') == string::npos) && !line.empty())
|
||||
logO << "(" << getName() << ") " << line << "\n";
|
||||
LOG(INFO) << "(" << getName() << ") " << line << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ void ProcessStream::worker()
|
|||
{
|
||||
if (lastException != e.what())
|
||||
{
|
||||
logE << "(PipeStream) Exception: " << e.what() << std::endl;
|
||||
LOG(ERROR) << "(PipeStream) Exception: " << e.what() << std::endl;
|
||||
lastException = e.what();
|
||||
}
|
||||
process_->kill();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue