Fixes #107 DML statement not logs when dynamic logging is activated for an entity