diff --git a/data/ex_log_01.txt b/data/example_logs/ex_log_01.txt similarity index 100% rename from data/ex_log_01.txt rename to data/example_logs/ex_log_01.txt diff --git a/data/ex_log_02.txt b/data/example_logs/ex_log_02.txt similarity index 100% rename from data/ex_log_02.txt rename to data/example_logs/ex_log_02.txt diff --git a/data/test_output_file.txt b/data/test_output_file.txt index d907646..5a1c60c 100644 --- a/data/test_output_file.txt +++ b/data/test_output_file.txt @@ -1,383 +1,4 @@ ==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 992Number of log lines: 9137Number of info messages: 31==================================================== -STARTING Tracking service - Start time: 2024-06-20 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-20 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-20 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-20 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-20 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-20 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-20 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-20 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-20 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-20 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-20 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-20 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-20 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-20 17:17:04,278 - root - INFO - Updating prices -2024-06-20 17:24:34,091 - root - INFO - Closing client connection. -2024-06-20 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-20 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' -Hello I am a bad log line -==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 992Number of log lines: 9137Number of info messages: 31 -==================================================== -STARTING Tracking service - Start time: 2024-06-20 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-20 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-20 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-20 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-20 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-20 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-20 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-20 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-20 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-20 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-20 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-20 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-20 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-20 17:17:04,278 - root - INFO - Updating prices -2024-06-20 17:24:34,091 - root - INFO - Closing client connection. -2024-06-20 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-20 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' -==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 38Number of log lines: 213Number of info messages: 1==================================================== -STARTING Tracking service - Start time: 2024-06-20 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-20 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-20 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-20 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-20 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-20 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-20 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-20 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-20 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-20 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-20 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-20 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-20 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-20 17:17:04,278 - root - INFO - Updating prices -2024-06-20 17:24:34,091 - root - INFO - Closing client connection. -2024-06-20 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-20 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' -Hello I am a bad log line -==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 992Number of log lines: 9137Number of info messages: 31==================================================== STARTING Tracking service Start time: 2024-06-20 09:00:00.001550+00:00 Version: 2729a @@ -423,174 +44,6 @@ STARTING Tracking service 2024-06-20 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' Hello I am a bad log line ==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 992Number of log lines: 9137Number of info messages: 31 -==================================================== -STARTING Tracking service - Start time: 2024-06-20 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-20 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-20 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-20 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-20 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-20 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-20 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-20 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-20 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-20 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-20 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-20 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-20 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-20 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-20 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-20 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-20 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-20 17:17:04,278 - root - INFO - Updating prices -2024-06-20 17:24:34,091 - root - INFO - Closing client connection. -2024-06-20 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-20 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' -==================================================== -STARTING Tracking service - Start time: 2024-06-21 09:00:00.001550+00:00 - Version: 2729a - Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a'] -==================================================== -2024-06-21 11:00:17,983 - root - INFO - Adding subscription for pid None -2024-06-21 11:00:18,115 - root - INFO - Initialized Influx DB Client to host -2024-06-21 11:00:18,115 - root - INFO - Scheduling Error Handler in 150.0 seconds -2024-06-21 11:00:18,116 - root - INFO - prometheus client http server running -2024-06-21 11:00:18,172 - root - INFO - Initialized prometheus server. -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - root - INFO - reading messages from 2024-06-20 -2024-06-21 11:00:18,172 - aiokafka.consumer.subscription_state - INFO - Updating subscribed topics to: frozenset({'internal'}) -2024-06-21 11:00:18,185 - root - INFO - Kafka reading from start of day 2024-06-20 05:00:00+00:00 on topic internal from kafka.servers:9092 -2024-06-21 11:00:19,328 - root - INFO - Kafka source starting for topic internal at current offset 7924032 end offset 7928950 on servers kafka.servers:9092 -2024-06-21 11:00:22,329 - root - INFO - Kafka topic internal is caught up at offset 7928949 -2024-06-21 11:00:22,329 - root - INFO - setting influx write rate to pre-market hours frequency -2024-06-21 11:00:22,329 - root - INFO - Tracking service is caught up -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol BYP321337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol BYP321337, trying ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for ric YT.ATS -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for ric YT.ATS, using provided identifier 1 -2024-06-21 11:40:43,527 - root - WARNING - instrument not found for sedol DHI7337 -2024-06-21 11:40:43,527 - root - WARNING - Could not find instrument for sedol DHI7337, trying ric YT.ATS -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric JPQ.CC -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric JPQ.CC, using provided identifier 2 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol RZZZZ2 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol RZZZZ2, trying ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric UYU.T -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric UTU.T, using provided identifier 3 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol OIN38378 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol OIN38378, trying ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric 837.RIJ -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric 837.RIJ, using provided identifier 4 -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for sedol UY29387 -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for sedol UY29387, trying ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - instrument not found for ric RUE.ST -2024-06-21 11:40:43,529 - root - WARNING - Could not find instrument for ric RUE.ST, using provided identifier 5 -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed client session NoneType: None -2024-06-21 17:16:03,660 - root - ERROR - Caught exception N/A. Message: Unclosed connector NoneType: None -2024-06-21 17:17:04,278 - root - INFO - Updating prices -2024-06-21 17:24:34,091 - root - INFO - Closing client connection. -2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 38Number of log lines: 213Number of info messages: 1 -==================================================== STARTING Tracking service Start time: 2024-06-20 09:00:00.001550+00:00 Version: 2729a @@ -695,4 +148,4 @@ STARTING Tracking service 2024-06-21 17:17:04,278 - root - INFO - Updating prices 2024-06-21 17:24:34,091 - root - INFO - Closing client connection. 2024-06-21 17:24:34,092 - root - INFO - Client (0)ui-tracking_service Closed -2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 76Number of log lines: 425Number of info messages: 3 +2024-06-21 17:25:08,029 - root - ERROR - Exception in message handler > TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier'Number of error lines: 22Number of log lines: 151Number of info messages: 0 diff --git a/src/alogamous/__main__.py b/src/alogamous/__main__.py index 17d4274..d75d6d7 100644 --- a/src/alogamous/__main__.py +++ b/src/alogamous/__main__.py @@ -3,7 +3,6 @@ from alogamous import ( analyzer, directory_reader, - echo_analyzer, error_counter_analyzer, flag_duplicate_log_messages, line_count_analyzer, @@ -13,18 +12,19 @@ warning_analyzer, ) -expected_arg_len = 2 +expected_arg_len = 4 if len(sys.argv) != expected_arg_len: - sys.stdout.write(f"Usage: {sys.argv[0]} ") + sys.stdout.write(f"Usage: {sys.argv[0]} ") sys.stdout.write("\nPossible LOG_CONFIGS are:") for key in log_line_parser.LOG_FILE_CONFIGS: sys.stdout.write(f"\n- {key}") + sys.stdout.write("\nINPUT_DIRECTORY must be file path to a directory of log files") + sys.stdout.write("\nOUTPUT_FILE must be file path to the file you want the log report written in") sys.exit(1) - -with open("../../data/test_output_file.txt", "a") as output_file: - reader = directory_reader.DirectoryReader("../../data") +with open(f"{sys.argv[3]}", "a") as output_file: + reader = directory_reader.DirectoryReader(f"{sys.argv[2]}") expected_fields = list( log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.EXPECTED_FIELDS] ) @@ -33,7 +33,7 @@ line_parser = log_line_parser.LogLineParser(expected_fields, seperator, header_line) analyzer.analyze_log_stream( [ - echo_analyzer.EchoAnalyzer(), + # echo_analyzer.EchoAnalyzer(), error_counter_analyzer.ErrorCounterAnalyzer(), flag_duplicate_log_messages.FlagDuplicateLogMessages(), line_count_analyzer.LineCountAnalyzer(),