Example #1
0
def error(fmt, ecode, *args):
    if options.msg_id_enabled(ecode):
        log.error(fmt, *args, extra={'ecode': ecode})
Example #2
0
def error(fmt, ecode, *args):
    if options.msg_id_enabled(ecode):
        global MESSAGES_GENERATED
        log.error(fmt, *args, extra={'ecode': ecode})
        MESSAGES_GENERATED = True