adjusted log tags

This commit is contained in:
badaix 2016-03-22 23:37:19 +01:00
parent 2872527e0b
commit 750df78090
6 changed files with 10 additions and 10 deletions

View file

@ -46,7 +46,7 @@ PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) : pcmListen
if (uri_.query.find("sampleformat") == uri_.query.end())
throw SnapException("Stream URI must have a sampleformat");
sampleFormat_ = SampleFormat(uri_.query["sampleformat"]);
logE << "PcmStream sampleFormat: " << sampleFormat_.getFormat() << "\n";
logO << "PcmStream sampleFormat: " << sampleFormat_.getFormat() << "\n";
if (uri_.query.find("buffer_ms") != uri_.query.end())
pcmReadMs_ = cpt::stoul(uri_.query["buffer_ms"]);
@ -85,7 +85,7 @@ const SampleFormat& PcmStream::getSampleFormat() const
void PcmStream::start()
{
logE << "PcmStream start: " << sampleFormat_.getFormat() << "\n";
logD << "PcmStream start: " << sampleFormat_.getFormat() << "\n";
//TODO: wrong encoder settings leads to: terminate called after throwing an instance of 'std::system_error' what(): Invalid argument
encoder_->init(this, sampleFormat_);

View file

@ -45,11 +45,11 @@ PcmStream* StreamManager::addStream(const std::string& uri)
if (streamUri.query.find("buffer_ms") == streamUri.query.end())
streamUri.query["buffer_ms"] = to_string(readBufferMs_);
// logE << "\nURI: " << streamUri.uri << "\nscheme: " << streamUri.scheme << "\nhost: "
// logD << "\nURI: " << streamUri.uri << "\nscheme: " << streamUri.scheme << "\nhost: "
// << streamUri.host << "\npath: " << streamUri.path << "\nfragment: " << streamUri.fragment << "\n";
// for (auto kv: streamUri.query)
// logE << "key: '" << kv.first << "' value: '" << kv.second << "'\n";
// logD << "key: '" << kv.first << "' value: '" << kv.second << "'\n";
if (streamUri.scheme == "pipe")
{

View file

@ -31,7 +31,7 @@ StreamUri::StreamUri(const std::string& streamUri)
// https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
// scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
// would be more elegant with regex. Not yet supported on my dev machine's gcc 4.8 :(
logE << "StreamUri: " << streamUri << "\n";
logD << "StreamUri: " << streamUri << "\n";
size_t pos;
uri = trim_copy(streamUri);
while (!uri.empty() && ((uri[0] == '\'') || (uri[0] == '"')))