mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 01:46:16 +02:00
Read logging settings from config file
This commit is contained in:
parent
ed3d9e5ebc
commit
7c71e0346b
2 changed files with 3 additions and 3 deletions
|
@ -70,8 +70,8 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
// debug settings
|
// debug settings
|
||||||
OptionParser conf("");
|
OptionParser conf("");
|
||||||
op.add<Value<string>>("", "logging.sink", "log sink [null,system,stdout,stderr,file:<filename>]", settings.logging.sink, &settings.logging.sink);
|
conf.add<Value<string>>("", "logging.sink", "log sink [null,system,stdout,stderr,file:<filename>]", settings.logging.sink, &settings.logging.sink);
|
||||||
auto logfilterOption = op.add<Value<string>>(
|
auto logfilterOption = conf.add<Value<string>>(
|
||||||
"", "logging.filter",
|
"", "logging.filter",
|
||||||
"log filter <tag>:<level>[,<tag>:<level>]* with tag = * or <log tag> and level = [trace,debug,info,notice,warning,error,fatal]",
|
"log filter <tag>:<level>[,<tag>:<level>]* with tag = * or <log tag> and level = [trace,debug,info,notice,warning,error,fatal]",
|
||||||
settings.logging.filter);
|
settings.logging.filter);
|
||||||
|
|
|
@ -82,7 +82,7 @@ void PosixStream::do_read()
|
||||||
|
|
||||||
if (first_)
|
if (first_)
|
||||||
{
|
{
|
||||||
LOG(DEBUG, LOG_TAG) << "First read, initializing nextTick to now\n";
|
LOG(TRACE, LOG_TAG) << "First read, initializing nextTick to now\n";
|
||||||
nextTick_ = std::chrono::steady_clock::now();
|
nextTick_ = std::chrono::steady_clock::now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue