Commit Diff
Diff:
dd86938369f3460df8e62a9d89b1897479c4a652
9105332af5479a809b57200c0dfc3aca3554311d
Commit:
9105332af5479a809b57200c0dfc3aca3554311d
Tree:
c52bc46e6de8b0ad28e77cae5731cd2c2bc39662
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Sat Feb 16 18:29:39 2013 UTC
Message:
* logging logic improvement
blob - d2458cb3d128246f16b5d22c04cc98b1bac58c73
blob + 4e325b1cdecbf6b67aaa4dbd6a382e1444d575b5
--- log.c
+++ log.c
@@ -60,14 +60,14 @@ dolog(int pri, char *fmt, ...)
*/
if (pri == LOG_DEBUG) {
- if (debug && verbose)
+ if (verbose && debug)
vprintf(fmt, ap);
- else
+ else if (verbose)
vsyslog(pri, fmt, ap);
} else {
if (debug)
vprintf(fmt, ap);
- else
+ else
vsyslog(pri, fmt, ap);
}
repomaster@centroid.eu