Issue #2985701 by longwave, dagmar, catch: Followup: Move DbLogTest::generateLogEntries() into a Trait (cherry picked from commit 7cb2fe80)