Eolian: log function gen exceptions with level DEBUG
This commit is contained in:
parent
c1be409a9c
commit
8e9827e8f2
|
@ -3,6 +3,7 @@
|
|||
import os
|
||||
import textwrap
|
||||
import keyword
|
||||
from traceback import format_exc
|
||||
|
||||
from collections import Counter
|
||||
|
||||
|
@ -708,11 +709,11 @@ class Class(object):
|
|||
if eo_prefix:
|
||||
try:
|
||||
o = EoConstructor.parse(ctor, eo_prefix, None)
|
||||
except Exception as e:
|
||||
log.error(e)
|
||||
except Exception:
|
||||
log.debug(
|
||||
"Skipping %s.%s because of an exception"
|
||||
% (cls.name, ctor.name))
|
||||
log.debug(format_exc())
|
||||
continue
|
||||
else:
|
||||
# try:
|
||||
|
@ -738,11 +739,11 @@ class Class(object):
|
|||
function_counter["_".join((prefix, prop.name))] += 1
|
||||
try:
|
||||
o = Property.parse(prop, eo_prefix, legacy_prefix)
|
||||
except Exception as e:
|
||||
log.error(e)
|
||||
except Exception:
|
||||
log.debug(
|
||||
"Skipping %s.%s because of an exception"
|
||||
% (cls.name, prop.name))
|
||||
log.debug(format_exc())
|
||||
continue
|
||||
self.props.append(o)
|
||||
generated_function_counter["_".join((prefix, prop.name))] += 1
|
||||
|
@ -752,11 +753,11 @@ class Class(object):
|
|||
function_counter["_".join((prefix, method.name))] += 1
|
||||
try:
|
||||
o = Method.parse(method, eo_prefix, legacy_prefix)
|
||||
except Exception as e:
|
||||
log.error(e)
|
||||
except Exception:
|
||||
log.debug(
|
||||
"Skipping %s.%s because of an exception"
|
||||
% (cls.name, method.name))
|
||||
log.debug(format_exc())
|
||||
continue
|
||||
self.methods.append(o)
|
||||
generated_function_counter["_".join((prefix, method.name))] += 1
|
||||
|
|
Loading…
Reference in New Issue