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

Commit f04f538

Browse files
committed
[client-python] remove logs
1 parent e4e48f9 commit f04f538

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,6 @@ def apply_patch(self, item):
24752475
self.apply_patch_files(item)
24762476

24772477
def apply_opencti_operation(self, item, operation):
2478-
self.opencti.app_logger.info("-- apply_opencti_opeartion --")
24792478
if operation == "delete":
24802479
delete_id = item["id"]
24812480
self.opencti.stix.delete(id=delete_id)
@@ -2486,7 +2485,6 @@ def apply_opencti_operation(self, item, operation):
24862485
elif operation == "patch":
24872486
self.apply_patch(item=item)
24882487
elif operation == "add_pir_dependency":
2489-
self.opencti.app_logger.info("add_pir_dependency operation !!")
24902488
id = item["id"]
24912489
input = item["input"]
24922490
self.opencti.pir.add_pir_dependency(id=id, input=input)
@@ -2506,7 +2504,6 @@ def import_item(
25062504
work_id: str = None,
25072505
):
25082506
worker_logger = self.opencti.logger_class("worker")
2509-
self.opencti.app_logger.info("------import item----------")
25102507
# Ultimate protection to avoid infinite retry
25112508
if processing_count > MAX_PROCESSING_COUNT:
25122509
if work_id is not None:
@@ -2747,7 +2744,6 @@ def import_bundle(
27472744
types: List = None,
27482745
work_id: str = None,
27492746
) -> List:
2750-
self.opencti.app_logger.info("---import bundle------")
27512747
# Check if the bundle is correctly formatted
27522748
if "type" not in stix_bundle or stix_bundle["type"] != "bundle":
27532749
raise ValueError("JSON data type is not a STIX2 bundle")
@@ -2763,13 +2759,10 @@ def import_bundle(
27632759
_, bundles = stix2_splitter.split_bundle_with_expectations(
27642760
stix_bundle, False, event_version
27652761
)
2766-
self.opencti.app_logger.info("---import bundle after splitter------", { "bundles": json.dumps(bundles) })
27672762
# Import every element in a specific order
27682763
imported_elements = []
27692764
for bundle in bundles:
2770-
self.opencti.app_logger.info("---bundle------")
27712765
for item in bundle["objects"]:
2772-
self.opencti.app_logger.info("---item------", { "item": item["id"] })
27732766
self.import_item(item, update, types, 0, work_id)
27742767
imported_elements.append({"id": item["id"], "type": item["type"]})
27752768

0 commit comments

Comments
 (0)