mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-08 22:01:44 +02:00
update logger
This commit is contained in:
parent
2955b20e9d
commit
ce55f15c02
36 changed files with 967 additions and 389 deletions
|
@ -39,7 +39,7 @@ PipeStream::PipeStream(PcmListener* pcmListener, const StreamUri& uri) : PcmStre
|
|||
umask(0);
|
||||
string mode = uri_.getQuery("mode", "create");
|
||||
|
||||
logO << "PipeStream mode: " << mode << "\n";
|
||||
LOG(INFO) << "PipeStream mode: " << mode << "\n";
|
||||
if ((mode != "read") && (mode != "create"))
|
||||
throw SnapException("create mode for fifo must be \"read\" or \"create\"");
|
||||
|
||||
|
@ -130,7 +130,7 @@ void PipeStream::worker()
|
|||
{
|
||||
if (lastException != e.what())
|
||||
{
|
||||
logE << "(PipeStream) Exception: " << e.what() << std::endl;
|
||||
LOG(ERROR) << "(PipeStream) Exception: " << e.what() << std::endl;
|
||||
lastException = e.what();
|
||||
}
|
||||
if (!sleep(100))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue