Fix the logging to be compatible with functest