From 7691f6f67aa202cf35d2872a11fa7b51507696b4 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Tue, 19 Aug 2014 22:18:22 +0000 Subject: [PATCH] logging git-svn-id: svn://elaine/murooma/trunk@201 d8a302eb-03bc-478d-80e4-98257eca68ef --- client/snapClient.cpp | 4 +++- client/stream.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/snapClient.cpp b/client/snapClient.cpp index cee9fe6f..48cded45 100644 --- a/client/snapClient.cpp +++ b/client/snapClient.cpp @@ -239,13 +239,15 @@ int main (int argc, char *argv[]) return 1; } + std::clog.rdbuf(new Log("snapclient", LOG_DAEMON)); if (runAsDaemon) { daemonize(); - std::clog.rdbuf(new Log("snapserver", LOG_DAEMON)); std::clog << kLogNotice << "daemon started" << std::endl; } + std::clog << kLogNotice << "test" << std::endl; + stream = new Stream(sampleRate, channels, bps); stream->setBufferLen(bufferMs); PaError paError; diff --git a/client/stream.cpp b/client/stream.cpp index a7842719..191cfd3e 100644 --- a/client/stream.cpp +++ b/client/stream.cpp @@ -2,6 +2,7 @@ #include #include #include +#include "common/log.h" using namespace std; @@ -129,6 +130,7 @@ void Stream::getPlayerChunk(void* outputBuffer, double outputBufferDacTime, unsi int correction = 0; if (sleep != 0) { + std::clog << kLogNotice << "sleep: " << sleep << std::endl; resetBuffers(); if (sleep < -10) {