Skip to content

Instantly share code, notes, and snippets.

@vr
Created February 17, 2011 10:34
Show Gist options
  • Save vr/831465 to your computer and use it in GitHub Desktop.
Save vr/831465 to your computer and use it in GitHub Desktop.
--- stunnel-4.33/src/log.c 2010-02-04 12:25:01.000000000 +0100
+++ stunnel-4.33.log.patch/src/log.c 2011-02-16 11:30:43.078766354 +0100
@@ -107,6 +107,9 @@
char text[STRLEN], stamp[STRLEN];
struct LIST *tmp;
+ if (mode!=LOG_MODE_NONE && level>global_options.debug_level)
+ return;
+
va_start(arglist, format);
#ifdef HAVE_VSNPRINTF
vsnprintf(text, STRLEN, format, arglist);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment