]> granicus.if.org Git - apache/commitdiff
For fat-fingered friends and others who like typing err and warn rather
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 1 Mar 2002 06:48:02 +0000 (06:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 1 Mar 2002 06:48:02 +0000 (06:48 +0000)
  than spelling it out on the -e argument.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93656 13f79535-47bb-0310-9956-ffa450edef68

server/main.c

index d1bac0ae5d91dbb523578263d3a933f26eaec316..65a69dbdb9b91f62764458ce6ceb6f2d4b6c1392 100644 (file)
@@ -368,10 +368,10 @@ int main(int argc, const char * const argv[])
             else if (strcasecmp(optarg, "crit") == 0) {
                 ap_default_loglevel = APLOG_CRIT;
             } 
-            else if (strcasecmp(optarg, "error") == 0) {
+            else if (strncasecmp(optarg, "err", 3) == 0) {
                 ap_default_loglevel = APLOG_ERR;
             } 
-            else if (strcasecmp(optarg, "warning") == 0) {
+            else if (strncasecmp(optarg, "warn", 4) == 0) {
                 ap_default_loglevel = APLOG_WARNING;
             } 
             else if (strcasecmp(optarg, "notice") == 0) {
@@ -465,7 +465,6 @@ int main(int argc, const char * const argv[])
             ap_register_hooks(*mod, pconf);
         }
 
-
         /* This is a hack until we finish the code so that it only reads
          * the config file once and just operates on the tree already in
          * memory.  rbb