]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
made -d command line option take a debugging level also
authorwessels <>
Sat, 21 Feb 1998 04:02:42 +0000 (04:02 +0000)
committerwessels <>
Sat, 21 Feb 1998 04:02:42 +0000 (04:02 +0000)
src/globals.h
src/main.cc

index 4fcf4fc6a01636d6fb430d0df73d55de20858e0d..654800827c491e5da76e21c135ac77ee3e4eb563 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: globals.h,v 1.37 1998/02/12 23:35:58 wessels Exp $
+ * $Id: globals.h,v 1.38 1998/02/20 21:03:44 wessels Exp $
  */
 
 extern FILE *debug_log;                /* NULL */
@@ -52,7 +52,7 @@ extern int icmp_sock;         /* -1 */
 extern int neighbors_do_private_keys;  /* 1 */
 extern int opt_accel_uses_host;        /* 0 */
 extern int opt_catch_signals;  /* 1 */
-extern int opt_debug_stderr;   /* 0 */
+extern int opt_debug_stderr;   /* -1 */
 extern int opt_dns_tests;      /* 1 */
 extern int opt_foreground_rebuild;     /* 0 */
 extern int opt_forwarded_for;  /* 1 */
index d5ef5e4461375eccf43c51ebc0704197ac35e2c4..f7cc870935df718348164734ff991ad208480a4e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.223 1998/02/19 23:09:53 wessels Exp $
+ * $Id: main.cc,v 1.224 1998/02/20 21:02:42 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -167,7 +167,7 @@ mainParseOptions(int argc, char *argv[])
     extern char *optarg;
     int c;
 
-    while ((c = getopt(argc, argv, "CDFNRSVYXa:df:hk:m::su:vz?")) != -1) {
+    while ((c = getopt(argc, argv, "CDFNRSVYXa:d:f:hk:m::su:vz?")) != -1) {
        switch (c) {
        case 'C':
            opt_catch_signals = 0;
@@ -201,7 +201,7 @@ mainParseOptions(int argc, char *argv[])
            httpPortNumOverride = atoi(optarg);
            break;
        case 'd':
-           opt_debug_stderr = 1;
+           opt_debug_stderr = atoi(optarg);
            break;
        case 'f':
            xfree(ConfigFile);