Change warnings to debug messages

This commit is contained in:
allegroai 2019-07-13 23:50:43 +03:00
parent a4c181e777
commit c997f6a95a

View File

@ -519,7 +519,7 @@ class PatchSummaryToEventTransformer(object):
setattr(SummaryToEventTransformer, 'trains', setattr(SummaryToEventTransformer, 'trains',
property(PatchSummaryToEventTransformer.trains_object)) property(PatchSummaryToEventTransformer.trains_object))
except Exception as ex: except Exception as ex:
getLogger(TrainsFrameworkAdapter).warning(str(ex)) getLogger(TrainsFrameworkAdapter).debug(str(ex))
if 'torch' in sys.modules: if 'torch' in sys.modules:
try: try:
@ -533,7 +533,7 @@ class PatchSummaryToEventTransformer(object):
# this is a new version of TensorflowX # this is a new version of TensorflowX
pass pass
except Exception as ex: except Exception as ex:
getLogger(TrainsFrameworkAdapter).warning(str(ex)) getLogger(TrainsFrameworkAdapter).debug(str(ex))
if 'tensorboardX' in sys.modules: if 'tensorboardX' in sys.modules:
try: try:
@ -549,7 +549,7 @@ class PatchSummaryToEventTransformer(object):
# this is a new version of TensorflowX # this is a new version of TensorflowX
pass pass
except Exception as ex: except Exception as ex:
getLogger(TrainsFrameworkAdapter).warning(str(ex)) getLogger(TrainsFrameworkAdapter).debug(str(ex))
if PatchSummaryToEventTransformer.__original_getattributeX is None: if PatchSummaryToEventTransformer.__original_getattributeX is None:
try: try:
@ -563,7 +563,7 @@ class PatchSummaryToEventTransformer(object):
# this is a new version of TensorflowX # this is a new version of TensorflowX
pass pass
except Exception as ex: except Exception as ex:
getLogger(TrainsFrameworkAdapter).warning(str(ex)) getLogger(TrainsFrameworkAdapter).debug(str(ex))
@staticmethod @staticmethod
def _patched_add_eventT(self, *args, **kwargs): def _patched_add_eventT(self, *args, **kwargs):
@ -795,7 +795,7 @@ class PatchTensorFlowEager(object):
except ImportError: except ImportError:
pass pass
except Exception as ex: except Exception as ex:
getLogger(TrainsFrameworkAdapter).warning(str(ex)) getLogger(TrainsFrameworkAdapter).debug(str(ex))
@staticmethod @staticmethod
def _get_event_writer(): def _get_event_writer():