httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: httpd-2.0/server util.c
Date Fri, 05 Jan 2001 14:32:32 GMT
dreid       01/01/05 06:32:32

  Modified:    server   util.c
  Log:
  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>
  
  Revision  Changes    Path
  1.88      +2 -2      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- util.c	2001/01/04 21:53:27	1.87
  +++ util.c	2001/01/05 14:32:31	1.88
  @@ -1875,7 +1875,7 @@
       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 @@
       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);
  
  
  

Mime
View raw message