mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-04 12:46:32 +02:00
logging
git-svn-id: svn://elaine/murooma/trunk@201 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
97ee67c178
commit
7691f6f67a
2 changed files with 5 additions and 1 deletions
|
@ -239,13 +239,15 @@ int main (int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::clog.rdbuf(new Log("snapclient", LOG_DAEMON));
|
||||||
if (runAsDaemon)
|
if (runAsDaemon)
|
||||||
{
|
{
|
||||||
daemonize();
|
daemonize();
|
||||||
std::clog.rdbuf(new Log("snapserver", LOG_DAEMON));
|
|
||||||
std::clog << kLogNotice << "daemon started" << std::endl;
|
std::clog << kLogNotice << "daemon started" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::clog << kLogNotice << "test" << std::endl;
|
||||||
|
|
||||||
stream = new Stream(sampleRate, channels, bps);
|
stream = new Stream(sampleRate, channels, bps);
|
||||||
stream->setBufferLen(bufferMs);
|
stream->setBufferLen(bufferMs);
|
||||||
PaError paError;
|
PaError paError;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include "common/log.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -129,6 +130,7 @@ void Stream::getPlayerChunk(void* outputBuffer, double outputBufferDacTime, unsi
|
||||||
int correction = 0;
|
int correction = 0;
|
||||||
if (sleep != 0)
|
if (sleep != 0)
|
||||||
{
|
{
|
||||||
|
std::clog << kLogNotice << "sleep: " << sleep << std::endl;
|
||||||
resetBuffers();
|
resetBuffers();
|
||||||
if (sleep < -10)
|
if (sleep < -10)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue