@@ -1378,7 +1378,7 @@ def import_sighting(
13781378 created = stix_sighting ["created" ] if "created" in stix_sighting else None ,
13791379 modified = stix_sighting ["modified" ] if "modified" in stix_sighting else None ,
13801380 confidence = (
1381- stix_sighting ["confidence" ] if "confidence" in stix_sighting else 15
1381+ stix_sighting ["confidence" ] if "confidence" in stix_sighting else None
13821382 ),
13831383 createdBy = extras ["created_by_id" ] if "created_by_id" in extras else None ,
13841384 objectMarking = (
@@ -2585,9 +2585,6 @@ def import_item(
25852585 in_retry = processing_count < PROCESSING_COUNT
25862586 # Platform is under heavy load, wait for unlock & retry indefinitely.
25872587 if ERROR_TYPE_LOCK in error_msg :
2588- worker_logger .info (
2589- "Message reprocess for lock rejection" , {"count" : processing_count }
2590- )
25912588 bundles_lock_error_counter .add (1 )
25922589 sleep_jitter = round (random .uniform (1 , 3 ), 2 )
25932590 time .sleep (sleep_jitter )
@@ -2596,10 +2593,6 @@ def import_item(
25962593 )
25972594 # Platform detects a missing reference and have to retry
25982595 elif ERROR_TYPE_MISSING_REFERENCE in error_msg and in_retry :
2599- worker_logger .info (
2600- "Message reprocess for missing reference" ,
2601- {"count" : processing_count },
2602- )
26032596 bundles_missing_reference_error_counter .add (1 )
26042597 sleep_jitter = round (random .uniform (1 , 3 ), 2 )
26052598 time .sleep (sleep_jitter )
@@ -2608,8 +2601,7 @@ def import_item(
26082601 )
26092602 # A bad gateway error occurs
26102603 elif ERROR_TYPE_BAD_GATEWAY in error_msg :
2611- worker_logger .error ("A connection error occurred" )
2612- worker_logger .info (
2604+ worker_logger .error (
26132605 "Message reprocess for bad gateway" ,
26142606 {"count" : processing_count },
26152607 )
@@ -2620,8 +2612,7 @@ def import_item(
26202612 )
26212613 # Request timeout error occurs
26222614 elif ERROR_TYPE_TIMEOUT in error_msg :
2623- worker_logger .error ("A connection error occurred" )
2624- worker_logger .info (
2615+ worker_logger .error (
26252616 "Message reprocess for request timed out" ,
26262617 {"count" : processing_count },
26272618 )
@@ -2634,10 +2625,6 @@ def import_item(
26342625 # That also works for missing reference with too much execution
26352626 else :
26362627 bundles_technical_error_counter .add (1 )
2637- worker_logger .error (
2638- "Error executing import" ,
2639- {"count" : processing_count , "reason" : error },
2640- )
26412628 if work_id is not None :
26422629 item_str = json .dumps (item )
26432630 self .opencti .work .report_expectation (
0 commit comments