diff options
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r-- | tntconfig.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp index bf811f1..96db7aa 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -148,6 +148,7 @@ namespace vdrlive { // XXX modularize file << "rootLogger=" << LiveSetup().GetTntnetLogLevel() << endl; file << "logger.tntnet=" << LiveSetup().GetTntnetLogLevel() << endl; + file << "logger.cxxtools=" << LiveSetup().GetTntnetLogLevel() << endl; } #endif @@ -156,6 +157,13 @@ namespace vdrlive { { string const configDir(Plugin::GetConfigDirectory()); + std::istringstream logConf( + "rootLogger=" + LiveSetup().GetTntnetLogLevel() + "\n" + "logger.tntnet=" + LiveSetup().GetTntnetLogLevel() + "\n" + "logger.cxxtools=" + LiveSetup().GetTntnetLogLevel() + "\n" + ); + log_init(logConf); + // +++ CAUTION +++ CAUTION +++ CAUTION +++ CAUTION +++ CAUTION +++ // ------------------------------------------------------------------------ // These mapUrl statements are very security sensitive! @@ -290,13 +298,6 @@ namespace vdrlive { esyslog( "[live] ERROR: Unable to load cert/key (%s/%s): %s", s_cert.c_str(), s_key.c_str(), strerror( errno ) ); } #endif // TNT_SSL_SUPPORT - - std::istringstream logConf( - "rootLogger=" + LiveSetup().GetTntnetLogLevel() + "\n" - // "logger.tntnet.static=DEBUG\n" - // "logger.cxxtools.net.tcp=DEBUG\n" - ); - log_init(logConf); } #endif |