summaryrefslogtreecommitdiff
path: root/examples/py-flow-info/flow-info.py
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-03-13 03:08:44 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-03-13 03:08:44 +0100
commitdaaaa615197d8551457ecf926f6df30c6482a70a (patch)
tree643e945b30efe9e64d436febb26d47503e121512 /examples/py-flow-info/flow-info.py
parented1647b9446f84d81d41e8e28ccf063eff97b2f7 (diff)
Renamed basic event to error event for the sake of the logic.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-flow-info/flow-info.py')
-rwxr-xr-xexamples/py-flow-info/flow-info.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py
index 244b17cfb..aaf92e4d9 100755
--- a/examples/py-flow-info/flow-info.py
+++ b/examples/py-flow-info/flow-info.py
@@ -276,10 +276,10 @@ def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data):
prettifyEvent(color, 15, 'DAEMON-EVENT'), daemon_msg))
stats.printStatus()
return True
- if 'basic_event_id' in json_dict:
+ if 'error_event_id' in json_dict:
print('{}{}{} {}: {}'.format(timestamp, basic_daemon_event_prefix, instance_and_source,
- prettifyEvent([TermColor.FAIL, TermColor.BLINK], 15, 'BASIC-EVENT'),
- json_dict['basic_event_name']))
+ prettifyEvent([TermColor.FAIL, TermColor.BLINK], 15, 'ERROR-EVENT'),
+ json_dict['error_event_name']))
stats.printStatus()
return True
elif 'flow_event_id' not in json_dict: