From 689ebbaf88333c6494bbe61049c88b167d1405d6 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 1 Mar 2002 06:48:02 +0000 Subject: [PATCH] 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 --- server/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.50.1