Skip to content

Commit c5f496f

Browse files
author
Samuel Hassine
committed
[client] Fix logging of None
1 parent 1ba2391 commit c5f496f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pycti/entities/opencti_stix_observable_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def list(self, **kwargs):
122122
order_by = kwargs.get('orderBy', None)
123123
order_mode = kwargs.get('orderMode', None)
124124
self.opencti.log('info',
125-
'Listing stix_observable_relations with {type: ' + relation_type + ', from_id: ' + str(
125+
'Listing stix_observable_relations with {type: ' + str(relation_type) + ', from_id: ' + str(
126126
from_id) + ', to_id: ' + str(to_id) + '}')
127127
query = """
128128
query StixObservableRelations($fromId: String, $fromTypes: [String], $toId: String, $toTypes: [String], $relationType: String, $firstSeenStart: DateTime, $firstSeenStop: DateTime, $lastSeenStart: DateTime, $lastSeenStop: DateTime, $inferred: Boolean, $first: Int, $after: ID, $orderBy: StixObservableRelationsOrdering, $orderMode: OrderingMode) {

pycti/entities/opencti_stix_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def list(self, **kwargs):
145145
order_by = kwargs.get('orderBy', None)
146146
order_mode = kwargs.get('orderMode', None)
147147
self.opencti.log('info',
148-
'Listing stix_relations with {type: ' + relation_type + ', from_id: ' + str(
148+
'Listing stix_relations with {type: ' + str(relation_type) + ', from_id: ' + str(
149149
from_id) + ', to_id: ' + str(to_id) + '}')
150150
query = """
151151
query StixRelations($fromId: String, $fromTypes: [String], $toId: String, $toTypes: [String], $relationType: String, $firstSeenStart: DateTime, $firstSeenStop: DateTime, $lastSeenStart: DateTime, $lastSeenStop: DateTime, $inferred: Boolean, $first: Int, $after: ID, $orderBy: StixRelationsOrdering, $orderMode: OrderingMode) {

0 commit comments

Comments
 (0)