From ff0f8a5c35652c0218219cf1fed4a3437e6ab8a3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 28 Jun 2013 21:10:05 +0200 Subject: src: Rename to SOCKET_WRAPPER_DEBUGLEVEL. --- README | 5 +++++ src/socket_wrapper.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README b/README index 7646883..7925f9d 100644 --- a/README +++ b/README @@ -16,3 +16,8 @@ SOCKET_WRAPPER_DEFAULT_IFACE SOCKET_WRAPPER_PCAP_FILE If set then all traffic will be written to the specified pcap file. + +SOCKET_WRAPPER_DEBUGLEVEL + If you socket_wrapper with with debug symbols + you can turn on logging by setting this to an + integer between 1 and 5. diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index ac7ce2d..70bfb11 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -90,7 +90,7 @@ static void swrap_log(enum swrap_dbglvl_e dbglvl, const char *format, ...) const char *d; unsigned int lvl = 0; - d = getenv("SOCKET_WRAPPER_DBGLVL"); + d = getenv("SOCKET_WRAPPER_DEBUGLEVEL"); if (d != NULL) { lvl = atoi(d); } -- cgit