}
}
+/**
+ * Print extenral WAN IP
+ * @param override_log_level Override log level with zero if true
+ * @param ip External WAN IP
+ */
+void Logger::print_external_wan_ip(bool override_log_level, const std::string &ip) const
+{
+ int level = 1;
+
+ if (override_log_level)
+ level = 0;
+
+ if ( level <= Loglevel )
+ {
+ ostringstream msg;
+ msg << "Determined WAN interface IP: " << ip << endl;
+ log_error(msg.str());
+ }
+}
/**
* Could not resolve current IP for DNS name
void print_no_wan_ip(bool override_log_level) const;
+ void print_external_wan_ip(bool override_log_level, const std::string &wan_ip) const;
+
void print_dns_lookup_failed(bool override_log_level, const std::string &hostname) const;
void print_webcheck_url_connection_problem(const char * curl_err_buff, const std::string& url);
{
Log->print_no_wan_ip(changed_to_online);
return;
+ } else
+ {
+ Log->print_external_wan_ip(changed_to_online, ip_host);
}
BOOST_FOREACH(Service::Ptr &service, services )