Use logging for providers error.
This commit is contained in:
whysage 2021-11-08 20:04:20 +02:00
parent 4ecf6cdad2
commit 8340d5fd7d

View File

@ -6,6 +6,7 @@ import copy
import errno import errno
import functools import functools
import inspect import inspect
import logging
import os import os
import re import re
import sys import sys
@ -207,7 +208,7 @@ cdef class Provider(object):
try: try:
result = self._provide(args, kwargs) result = self._provide(args, kwargs)
except Exception as exc: except Exception as exc:
print(self) logging.debug(str(self))
raise exc raise exc
if self.is_async_mode_disabled(): if self.is_async_mode_disabled():