summaryrefslogtreecommitdiffstats
path: root/server/util.c
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2001-01-05 15:32:31 +0100
committerDavid Reid <dreid@apache.org>2001-01-05 15:32:31 +0100
commitd5a0dc99af2429a64f2d765a67f9e7298a03498c (patch)
tree199353272983c34ef6a50061364f32d3700cf522 /server/util.c
parenteliminate entries from libhttpd.def that are also in libaprutil.def (diff)
downloadapache2-d5a0dc99af2429a64f2d765a67f9e7298a03498c.tar.xz
apache2-d5a0dc99af2429a64f2d765a67f9e7298a03498c.zip
As we now use pools in the logging of the failure to get a hostname,
use ap_log_perror() as per Brians suggestion. Submitted by: Brian Havard <brianh@kheldar.apana.org.au> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util.c')
-rw-r--r--server/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/util.c b/server/util.c
index 5c92f5e070..d0a8056c9d 100644
--- a/server/util.c
+++ b/server/util.c
@@ -1875,7 +1875,7 @@ char *ap_get_local_host(apr_pool_t *a)
if (gethostname(str, sizeof(str) - 1) != 0)
#endif
{
- ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_WARNING, 0, a,
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP | APLOG_WARNING, 0, a,
"%s: gethostname() failed to determine ServerName",
ap_server_argv0);
}
@@ -1900,7 +1900,7 @@ char *ap_get_local_host(apr_pool_t *a)
if (!server_hostname)
server_hostname = apr_pstrdup(a, "127.0.0.1");
- ap_log_error(APLOG_MARK, APLOG_ALERT|APLOG_NOERRNO|APLOG_STARTUP, 0, a,
+ ap_log_perror(APLOG_MARK, APLOG_ALERT|APLOG_NOERRNO|APLOG_STARTUP, 0, a,
"%s: Could not determine the server's fully qualified "
"domain name, using %s for ServerName",
ap_server_argv0, server_hostname);