def check_log_settings(args):
    """
    Quick method to check the consistency of log settings
    from the namespace.
    :param args: a Namespace
    :return: args
    """
    if args.log == 'stderr':
        args.json_conf['log_settings']['log'] = None
    elif args.log is not None:
        args.json_conf['log_settings']['log'] = args.log
    if args.log_level is not None:
        args.json_conf['log_settings']['log_level'] = args.log_level
    elif args.verbose is True:
        args.json_conf['log_settings']['log_level'] = 'DEBUG'
    elif args.noverbose is True:
        args.json_conf['log_settings']['log_level'] = 'ERROR'
    return args
