diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2013-06-28 21:10:05 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2013-06-28 21:10:05 +0200 |
| commit | ff0f8a5c35652c0218219cf1fed4a3437e6ab8a3 (patch) | |
| tree | b2877651b1a9cc65fe96bb37352ad14eb4effb67 | |
| parent | 8db8c4eda783041d9ccc67f1929d0847234548e9 (diff) | |
| download | socket_wrapper-ff0f8a5c35652c0218219cf1fed4a3437e6ab8a3.tar.gz socket_wrapper-ff0f8a5c35652c0218219cf1fed4a3437e6ab8a3.tar.xz socket_wrapper-ff0f8a5c35652c0218219cf1fed4a3437e6ab8a3.zip | |
src: Rename to SOCKET_WRAPPER_DEBUGLEVEL.
| -rw-r--r-- | README | 5 | ||||
| -rw-r--r-- | src/socket_wrapper.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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); } |
