mirror of https://github.com/MISP/misp-modules
fix: [internal] Better exception logging
parent
e50ab6379f
commit
1f75b8f865
|
@ -41,14 +41,14 @@ try:
|
||||||
from .modules import * # noqa
|
from .modules import * # noqa
|
||||||
HAS_PACKAGE_MODULES = True
|
HAS_PACKAGE_MODULES = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
logging.exception(e)
|
||||||
HAS_PACKAGE_MODULES = False
|
HAS_PACKAGE_MODULES = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .helpers import * # noqa
|
from .helpers import * # noqa
|
||||||
HAS_PACKAGE_HELPERS = True
|
HAS_PACKAGE_HELPERS = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
logging.exception(e)
|
||||||
HAS_PACKAGE_HELPERS = False
|
HAS_PACKAGE_HELPERS = False
|
||||||
|
|
||||||
log = logging.getLogger('misp-modules')
|
log = logging.getLogger('misp-modules')
|
||||||
|
|
Loading…
Reference in New Issue