From: William A. Rowe Jr Date: Fri, 1 Mar 2002 06:48:02 +0000 (+0000) Subject: For fat-fingered friends and others who like typing err and warn rather X-Git-Tag: 2.0.33~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=689ebbaf88333c6494bbe61049c88b167d1405d6;p=apache For fat-fingered friends and others who like typing err and warn rather 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 --- diff --git a/server/main.c b/server/main.c index d1bac0ae5d..65a69dbdb9 100644 --- a/server/main.c +++ b/server/main.c @@ -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