def parse_line(self, line):
        """
        Given a line with an Eliot message, it inserts the hostname
        and the system name into the message

        :param line: The line read from the tail output that was identified
            as an Eliot message
        """
        try:
            message = json.loads(line)
        except __HOLE__:
            # Docker log messages are not JSON
            message = dict(message=line)

        message[u"_HOSTNAME"] = self._host
        message[u"_PROCESS_NAME"] = self._service
        return message
dataset/ETHPy150Open ClusterHQ/flocker/admin/acceptance.py/TailFormatter.parse_line