Skip to content

Commit

Permalink
no need to write an empty audit log entry (ydb-platform#13854)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstalin authored Jan 27, 2025
1 parent f2d7def commit d050a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/core/audit/audit_log_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ class TAuditLogActor final : public TActor<TAuditLogActor> {
? AuditLogItemBuilders[builderIndex] : AuditLogItemBuilders[DefaultAuditLogItemBuilder];
const auto msg = ev->Get();
const auto auditLogItem = builder(msg->Time, msg->Parts);
WriteLog(auditLogItem, logBackends.second);
if (!auditLogItem.empty()) {
WriteLog(auditLogItem, logBackends.second);
}
}
}

Expand Down

0 comments on commit d050a4a

Please sign in to comment.