Skip to content

Commit 3311dda

Browse files
committed
Debug log: enhance message for SecRequestBodyNoFilesLimit
1 parent ea80d31 commit 3311dda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/transaction.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@ int Transaction::processRequestBody() {
814814
m_variableReqbodyError.set("1", 0);
815815
m_variableReqbodyErrorMsg.set("Request body excluding files is bigger than the maximum expected.", 0);
816816
m_variableInboundDataError.set("1", m_variableOffset);
817-
ms_dbg(5, "Request body excluding files is bigger than the maximum expected.");
817+
ms_dbg(5, "Request body excluding files is bigger than the maximum expected. Limit: " \
818+
+ std::to_string(m_rules->m_requestBodyNoFilesLimit.m_value));
818819
requestBodyNoFilesLimitExceeded = true;
819820
}
820821
}
@@ -901,7 +902,8 @@ int Transaction::processRequestBody() {
901902
m_variableReqbodyError.set("1", 0);
902903
m_variableReqbodyErrorMsg.set("Request body excluding files is bigger than the maximum expected.", 0);
903904
m_variableInboundDataError.set("1", m_variableOffset);
904-
ms_dbg(5, "Request body excluding files is bigger than the maximum expected.");
905+
ms_dbg(5, "Request body excluding files is bigger than the maximum expected. Limit: " \
906+
+ std::to_string(m_rules->m_requestBodyNoFilesLimit.m_value));
905907
} else {
906908
m_variableReqbodyError.set("0", m_variableOffset);
907909
m_variableReqbodyProcessorError.set("0", m_variableOffset);

0 commit comments

Comments
 (0)