From afa4e929814e524291e5c44808e1f594cfccd290 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 13 Feb 2011 01:36:53 +0100 Subject: Log on which ips an attempt to listen is initiated at live plugin startup. --- tntconfig.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index 4f0df22..bf811f1 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -255,10 +255,11 @@ namespace vdrlive { size_t listenFailures = 0; for ( Setup::IpList::const_iterator ip = ips.begin(); ip != ips.end(); ++ip ) { try { + esyslog("[live] INFO: attempt to listen on ip = '%s'", ip->c_str()); app.listen(*ip, port); } catch (exception const & ex) { - esyslog("ERROR: live ip = %s is invalid: exception = %s", ip->c_str(), ex.what()); + esyslog("[live] ERROR: ip = %s is invalid: exception = %s", ip->c_str(), ex.what()); if (++listenFailures == ips.size()) { // if no listener was initialized we throw at // least the last exception to the next layer. @@ -286,7 +287,7 @@ namespace vdrlive { } } else { - esyslog( "ERROR: Unable to load cert/key (%s/%s): %s", s_cert.c_str(), s_key.c_str(), strerror( errno ) ); + 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 -- cgit v1.2.3