Fix deprecated warning.
Stdout as primary log stream for tests.

- it helps to prevent stderr race in PyCharm debug window.