More fixes to teamcity logging.