Adds support to SecAuditLogParts

This commit is contained in:
Felipe Zimmerle
2015-07-10 19:05:46 -03:00
parent 5e33a1a3c4
commit 0c98bdc80b
8 changed files with 76 additions and 63 deletions

View File

@@ -74,10 +74,10 @@ bool AuditLogWriterParallel::close() {
}
bool AuditLogWriterParallel::write(Assay *assay) {
bool AuditLogWriterParallel::write(Assay *assay, int parts) {
FILE *fp;
int fd;
std::string log = assay->to_json(0);
std::string log = assay->to_json(parts);
std::string fileName = logFilePath(&assay->timeStamp,
YearMonthDayDirectory | YearMonthDayAndTimeDirectory
| YearMonthDayAndTimeFileName);