def reopenLog(self):
        self.closeLog()  #innocuous to call close() on unopened file
        try:
            self.logFile = open(self.logPath, 'a+')

        except IOError as ex:
            console.terse("Error: creating server log file '{0}\n".format(ex))
            self.logFile = None
            return False

        console.concise("     Created Server Log file {0}\n".format(self.logPath))

        return True
closes if open then reopens
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/serving.py/Server.reopenLog