From 1f75b8f8658e30faabaca00283d31a0741d7994d Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Fri, 24 Dec 2021 15:33:23 +0100 Subject: [PATCH] fix: [internal] Better exception logging --- misp_modules/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misp_modules/__init__.py b/misp_modules/__init__.py index 21e3db3a..b068d8a1 100644 --- a/misp_modules/__init__.py +++ b/misp_modules/__init__.py @@ -41,14 +41,14 @@ try: from .modules import * # noqa HAS_PACKAGE_MODULES = True except Exception as e: - print(e) + logging.exception(e) HAS_PACKAGE_MODULES = False try: from .helpers import * # noqa HAS_PACKAGE_HELPERS = True except Exception as e: - print(e) + logging.exception(e) HAS_PACKAGE_HELPERS = False log = logging.getLogger('misp-modules')