ha-tests: cleanup logging code.