def METHOD_NAME(self):
    if not self._msg_log:
        self.logfile_reader.update_offset_file()
    else:
        first_logoffset = min(x["offset"] for x in self._msg_log.values())
        self.logfile_reader.write_offset_to_file(first_logoffset)