diff options
| author | Roy Marples <roy@marples.name> | 2009-02-23 23:52:21 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-02-23 23:52:21 +0000 |
| commit | acb1cf88cf6a35c5156908349c31de634f107141 (patch) | |
| tree | ab8ad2d67bca30de9fcec67de055c12daaff76f9 /dhcpcd.c | |
| parent | ab40c070d66713655a4d3e8839819ebab89e8529 (diff) | |
| download | dhcpcd-acb1cf88cf6a35c5156908349c31de634f107141.tar.xz | |
Fix debug working in dhcpcd.conf
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1281,9 +1281,6 @@ main(int argc, char **argv) while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1) { switch (opt) { - case 'd': - setlogmask(LOG_UPTO(LOG_DEBUG)); - break; case 'f': cffile = optarg; break; @@ -1325,7 +1322,9 @@ main(int argc, char **argv) options &= ~DHCPCD_DAEMONISE; #endif - if (options & DHCPCD_QUIET) + if (options & DHCPCD_DEBUG) + setlogmask(LOG_UPTO(LOG_DEBUG)); + else if (options & DHCPCD_QUIET) setlogmask(LOG_UPTO(LOG_WARNING)); /* If we have any other args, we should run as a single dhcpcd instance |
