diff --git a/src/sbbs3/sbbs_ini.c b/src/sbbs3/sbbs_ini.c index 7f47b9546b576d2c15d62d848ecbfde04f30508a..42b48ce058aa65b4b6b45eeb57773807d40762e5 100644 --- a/src/sbbs3/sbbs_ini.c +++ b/src/sbbs3/sbbs_ini.c @@ -46,6 +46,7 @@ static ini_bitdesc_t ftp_options[] = { static ini_bitdesc_t web_options[] = { + { WEB_OPT_DEBUG_RX ,"DEBUG_RX" }, { WEB_OPT_DEBUG_TX ,"DEBUG_TX" }, { WEB_OPT_VIRTUAL_HOSTS ,"VIRTUAL_HOSTS" }, diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 5142b90ab9ff138a1e41fdf035cb688269ee871f..e76a658d0787eb83ffc9503362a1a693d8bfc878 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -754,7 +754,8 @@ static int sockreadline(http_session_t * session, time_t timeout, char *buf, siz else buf[i]=0; - lprintf("%04d RX: %s",session->socket,buf); + if(startup->options&WEB_OPT_DEBUG_RX) + lprintf("%04d RX: %s",session->socket,buf); return(0); } diff --git a/src/sbbs3/websrvr.h b/src/sbbs3/websrvr.h index 76893a0332e7b1606a344a409b894be1cf1ad5d0..99e1f43652bbc255503d337548637fbda00d1467 100644 --- a/src/sbbs3/websrvr.h +++ b/src/sbbs3/websrvr.h @@ -89,8 +89,9 @@ typedef struct { BOOL recycle_now; } web_startup_t; -#define WEB_OPT_DEBUG_TX (1<<0) /* Log all transmitted responses */ -#define WEB_OPT_VIRTUAL_HOSTS (1<<1) /* Use virutal host html subdirs */ +#define WEB_OPT_DEBUG_RX (1<<0) /* Log all received requests */ +#define WEB_OPT_DEBUG_TX (1<<1) /* Log all transmitted responses */ +#define WEB_OPT_VIRTUAL_HOSTS (1<<4) /* Use virutal host html subdirs */ #ifdef DLLEXPORT #undef DLLEXPORT