-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
==================================================== | ||
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 <bound method TrackingService.method of <app.tracking_service.TrackingService object at 0x7feba0d0>> 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 <bound method TrackingService.method of <app.tracking_service.TrackingService object at 0x7feba0d0>> TrackingService.on_order_change() missing 1 required positional argument: 'order_identifier' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
from src.alogamous import analyzer, echo_analyzer, error_counter_analyzer, line_count_analyzer, warning_analyzer | ||
|
||
with open("../../data/ex_log_01.txt") as log_file, open("../../data/test_output_file.txt", "a") as output_file: | ||
with open("../../data/test_output_file.txt", "a") as output_file: | ||
reader = directory_reader.DirectoryReader("../../data") | ||
analyzer.analyze_log_stream( | ||
[ | ||
echo_analyzer.EchoAnalyzer(), | ||
error_counter_analyzer.ErrorCounterAnalyzer(), | ||
line_count_analyzer.LineCountAnalyzer(), | ||
warning_analyzer.WarningAnalyzer(), | ||
], | ||
log_file, | ||
reader.read(), | ||
output_file, | ||
) |