fix: only log document event when enableDocumentInternalLog is enabled (#7676)

This commit is contained in:
Lucas 2025-04-02 16:09:52 +08:00 committed by GitHub
parent 913924d8d3
commit d74b0bf6e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,8 +271,10 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
return; return;
} }
if (options.inMemoryUpdate && enableDocumentInternalLog) { if (options.inMemoryUpdate) {
Log.trace('skip transaction for in-memory update'); if (enableDocumentInternalLog) {
Log.trace('skip transaction for in-memory update');
}
return; return;
} }