remove debug from option.py
This commit is contained in:
parent
b494c70d9a
commit
2c5d376219
|
@ -25,7 +25,7 @@ from typing import Any, List, Callable, Optional
|
|||
|
||||
from .baseoption import OnlyOption, submulti, STATIC_TUPLE
|
||||
from ..i18n import _
|
||||
from ..setting import log, undefined, debug, OptionBag
|
||||
from ..setting import log, undefined, OptionBag
|
||||
from ..autolib import carry_out_calculation
|
||||
from ..error import (ConfigError, ValueWarning, PropertiesOptionError,
|
||||
display_list)
|
||||
|
@ -300,12 +300,6 @@ class Option(OnlyOption):
|
|||
check_error,
|
||||
is_warnings_only)
|
||||
except ValueError as err:
|
||||
if debug: # pragma: no cover
|
||||
log.debug('do_validation: value: {0}, index: {1}:'
|
||||
' {2}'.format(val,
|
||||
force_index,
|
||||
err),
|
||||
exc_info=True)
|
||||
msg = _('"{0}" is an invalid {1} for "{2}"'
|
||||
'').format(val,
|
||||
self._display_name,
|
||||
|
@ -596,8 +590,6 @@ class Option(OnlyOption):
|
|||
value,
|
||||
func)
|
||||
except PropertiesOptionError as err:
|
||||
if debug: # pragma: no cover
|
||||
log.debug('propertyerror in launch_consistency: {0}'.format(err))
|
||||
if transitive:
|
||||
err.set_orig_opt(option_bag.option)
|
||||
raise err
|
||||
|
@ -707,8 +699,6 @@ class Option(OnlyOption):
|
|||
if opt_ not in equal:
|
||||
equal.append(opt_)
|
||||
if equal:
|
||||
if debug: # pragma: no cover
|
||||
log.debug(_('_cons_not_equal: {} are not different').format(display_list(equal)))
|
||||
if is_current:
|
||||
if warnings_only:
|
||||
msg = _('should be different from the value of "{}"')
|
||||
|
|
|
@ -113,7 +113,6 @@ log = getLogger('tiramisu')
|
|||
#FIXME
|
||||
#import logging
|
||||
#logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
|
||||
debug = False
|
||||
static_set = frozenset()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue