From 00948c86d508fc701c1e1a3b2bca073ffad50d1b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 10 Feb 2012 14:29:16 +0100 Subject: [PATCH] Add debug messages to HTTP error/warning handling. --- src/app-layer-htp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index bac04c49e0..5ec7f0fed9 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -452,6 +452,7 @@ struct { * \retval id the id or 0 in case of not found */ static int HTPHandleWarningGetId(const char *msg) { + SCLogDebug("received warning \"%s\"", msg); size_t idx; for (idx = 0; idx < HTP_WARNING_MAX; idx++) { if (strncmp(htp_warnings[idx].msg, msg, @@ -474,6 +475,8 @@ static int HTPHandleWarningGetId(const char *msg) { * \retval id the id or 0 in case of not found */ static int HTPHandleErrorGetId(const char *msg) { + SCLogDebug("received error \"%s\"", msg); + size_t idx; for (idx = 0; idx < HTP_ERROR_MAX; idx++) { if (strncmp(htp_errors[idx].msg, msg,