def METHOD_NAME(self, substring):
    output = self._runner.get_logs()
    if substring in output:
        print(output)
        self.fail("Found substring in recent logs: " + substring)
    else:
        pass