Removed unused suppresion and avoid copy of logPath

This commit is contained in:
Eduardo Arias 2024-04-28 14:36:18 -03:00
parent 4aad8e0d06
commit 7a9c0ab15f
2 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,7 @@ bool Parallel::write(Transaction *transaction, int parts, std::string *error) {
log = transaction->toOldAuditLogFormat(parts, "-" + boundary + "--");
}
std::string logPath = m_audit->m_storage_dir;
const auto &logPath = m_audit->m_storage_dir;
fileName = logPath + fileName + "-" + *transaction->m_id.get();
if (logPath.empty()) {

View File

@ -33,7 +33,6 @@ shiftNegative:src/utils/msc_tree.cc
useInitializationList:src/utils/shared_files.h:87
duplicateBranch:src/audit_log/audit_log.cc:226
unreadVariable:src/request_body_processor/multipart.cc:435
stlcstrParam:src/audit_log/writer/parallel.cc:145
syntaxError:src/transaction.cc:62
noConstructor:src/variables/variable.h:152
rethrowNoCurrentException:headers/modsecurity/transaction.h:313