mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Report hostname, location, and admin from config to log
This commit is contained in:
parent
d76d29d929
commit
66c9172424
@ -561,13 +561,15 @@ static inline void __log_system_name(void) {
|
|||||||
|
|
||||||
ICECAST_LOG_INFO("Running on %s; OS: %s; Address Bits: %i", hostname, system, sizeof(void*)*8);
|
ICECAST_LOG_INFO("Running on %s; OS: %s; Address Bits: %i", hostname, system, sizeof(void*)*8);
|
||||||
|
|
||||||
|
config = config_get_config();
|
||||||
if (have_hostname) {
|
if (have_hostname) {
|
||||||
config = config_get_config();
|
|
||||||
if ((config->config_problems & CONFIG_PROBLEM_HOSTNAME) && util_hostcheck(hostname) == HOSTCHECK_SANE) {
|
if ((config->config_problems & CONFIG_PROBLEM_HOSTNAME) && util_hostcheck(hostname) == HOSTCHECK_SANE) {
|
||||||
ICECAST_LOG_WARN("Hostname is not set to anything useful in <hostname>, Consider setting it to the system's name \"%s\".", hostname);
|
ICECAST_LOG_WARN("Hostname is not set to anything useful in <hostname>, Consider setting it to the system's name \"%s\".", hostname);
|
||||||
}
|
}
|
||||||
config_release_config();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ICECAST_LOG_WARN("From configuration: Our hostname is %#H, located % #H, with admin contact % #H", config->hostname, config->location, config->admin);
|
||||||
|
config_release_config();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32_SERVICE
|
#ifdef WIN32_SERVICE
|
||||||
|
Loading…
Reference in New Issue
Block a user