summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.cpp10
-rw-r--r--tntconfig.cpp5
2 files changed, 8 insertions, 7 deletions
diff --git a/setup.cpp b/setup.cpp
index 8f759a3..8509d48 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -148,7 +148,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value )
bool Setup::CheckServerPort()
{
if ( m_serverPort <= 0 || m_serverPort > numeric_limits< uint16_t >::max() ) {
- esyslog( "ERROR: live server port %d is not a valid port number", m_serverPort );
+ esyslog( "[live] ERROR: server port %d is not a valid port number", m_serverPort );
cerr << "ERROR: live server port " << m_serverPort << " is not a valid port number" << endl;
return false;
}
@@ -159,7 +159,7 @@ bool Setup::CheckServerPort()
bool Setup::CheckServerSslPort()
{
if ( m_serverSslPort <= 0 || m_serverSslPort > numeric_limits< uint16_t >::max() ) {
- esyslog( "ERROR: live server ssl port %d is not a valid port number", m_serverSslPort );
+ esyslog( "[live] ERROR: server ssl port %d is not a valid port number", m_serverSslPort );
cerr << "ERROR: live server ssl port " << m_serverSslPort << " is not a valid port number" << endl;
return false;
}
@@ -175,12 +175,12 @@ namespace {
struct in6_addr buf;
struct in_addr buf4;
- esyslog( "INFO: validating live server ip '%s'", ip.c_str());
- cerr << "INFO: validating server ip '" << ip << "'" << endl;
+ esyslog( "[live] INFO: validating server ip '%s'", ip.c_str());
+ cerr << "INFO: validating live server ip '" << ip << "'" << endl;
bool valid = inet_aton(ip.c_str(), &buf4) || inet_pton(AF_INET6, ip.c_str(), &buf);
if (!valid) {
- esyslog( "ERROR: live server ip %s is not a valid ip address", ip.c_str());
+ esyslog( "[live] ERROR: server ip %s is not a valid ip address", ip.c_str());
cerr << "ERROR: live server ip '" << ip << "' is not a valid ip address" << endl;
}
return valid;
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