Added optional printing of logs to make tests shut up

* one more extraction from tests
[#75134504]