X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fkeytrans%2Fgnutls-helpers.c;h=d5f3719c90f9480d7c7cbb83e3afd1818e4296d1;hb=ac63e6d6a916e4b51a183e60d7aeae3c2568f3af;hp=c6e4979b66665b9cb0df3e241cb7a351efd908e0;hpb=1fe3ced39fb67b32b1cce11cd692e492221da930;p=monkeysphere.git diff --git a/src/keytrans/gnutls-helpers.c b/src/keytrans/gnutls-helpers.c index c6e4979..d5f3719 100644 --- a/src/keytrans/gnutls-helpers.c +++ b/src/keytrans/gnutls-helpers.c @@ -15,11 +15,13 @@ /* for exit() */ #include +/* higher levels allow more frivolous error messages through. + this is set with the MONKEYSPHERE_DEBUG variable */ static int loglevel = 0; void err(int level, const char* fmt, ...) { va_list ap; - if (level < loglevel) + if (level > loglevel) return; va_start(ap, fmt); vfprintf(stderr, fmt, ap);