def get_expires(self, record):
        pn = self._pynotify
        return pn.EXPIRES_NEVER if record.level >= ERROR else pn.EXPIRES_DEFAULT
Returns either EXPIRES_DEFAULT or EXPIRES_NEVER for this record.
dataset/ETHPy150Open getlogbook/logbook/logbook/notifiers.py/LibNotifyHandler.get_expires