Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit ec3808c

Browse files
committed
[client] Enhance logging
1 parent ecbf254 commit ec3808c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pycti/utils/opencti_stix2_update.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# coding: utf-8
22

3+
import traceback
4+
35
from pycti.api import LOGGER as API_LOGGER
46
from pycti.utils.constants import StixCyberObservableTypes
57

@@ -299,6 +301,5 @@ def process_update(self, data):
299301
inputs.append({"key": key, "value": values})
300302
self.update_attribute(data["type"], data["id"], inputs)
301303
except Exception as e:
302-
print(e)
303-
print(data)
304-
API_LOGGER.error("Cannot process this message")
304+
error_msg = traceback.format_exc()
305+
API_LOGGER.error(error_msg)

0 commit comments

Comments
 (0)