summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-02-13 01:36:53 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-02-13 01:36:53 +0100
commitafa4e929814e524291e5c44808e1f594cfccd290 (patch)
treef40b073ee6afa8f4e4d7c52295140d6547347f26 /setup.cpp
parent8c66b5ce039fbc6d6e20561fc4a670cb95428c47 (diff)
downloadvdr-plugin-live-afa4e929814e524291e5c44808e1f594cfccd290.tar.gz
vdr-plugin-live-afa4e929814e524291e5c44808e1f594cfccd290.tar.bz2
Log on which ips an attempt to listen is initiated at live plugin startup.
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp10
1 files changed, 5 insertions, 5 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;