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
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++;
}