summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--src/socket_wrapper.c2
2 files changed, 6 insertions, 1 deletions
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);
}