Limits the transformation output to 80 chars in the debug logs

This commit is contained in:
Felipe Zimmerle 2016-11-16 11:00:10 -03:00
parent f5898e94c7
commit c98be42f8f
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 5 additions and 3 deletions

View File

@ -408,7 +408,8 @@ bool Rule::evaluate(Transaction *trasn) {
#ifndef NO_LOGS
trasn->debug(9, "(SecDefaultAction) T (" + \
std::to_string(transformations) + ") " + \
a->m_name + ": \"" + value +"\"");
a->m_name + ": \"" + \
utils::string::limitTo(80, value) +"\"");
#endif
transformations++;
}
@ -421,7 +422,8 @@ bool Rule::evaluate(Transaction *trasn) {
#ifndef NO_LOGS
trasn->debug(9, " T (" + \
std::to_string(transformations) + ") " + \
a->m_name + ": \"" + value +"\"");
a->m_name + ": \"" + \
utils::string::limitTo(80, value) + "\"");
#endif
transformations++;
}

View File

@ -51,7 +51,7 @@
]
},
"expected":{
"debug_log":"Content-Type: multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2"
"debug_log":"Expect: 100-continue\\x0aContent-Type: multipart/form-data; boundary=------------"
},
"rules":[
"SecRuleEngine On",