def logend(self):
        """ End logging. """
        if not self.logfp:
            return
        end = datetime.datetime.now()
        self.log("ospfmanetmdrtest end: %s (%s)\n" % \
                 (end.ctime(),  end - self.start))
        self.logfp.flush()
        self.logfp.close()
        self.logfp = None
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/ospfmanetmdrtest.py/ManetExperiment.logend/original