Commit Graph

23 Commits

Author SHA1 Message Date
vvzvlad
834ddb4438 Fix log status message in checker.py to return head_sub_id directly instead of formatted number. This change improves clarity in log output. 2025-01-20 13:33:54 +03:00
vvzvlad
57c8b81c13 Add format_number function to checker.py for improved subscription ID formatting
This update introduces a new `format_number` function that formats subscription IDs into a more readable format (e.g., converting 1000 to '1k'). The `check_logs` function has been modified to utilize this new formatting for both head subscription ID and last subscription ID in the status messages, enhancing clarity in log analysis and improving the overall readability of subscription status reporting.
2025-01-19 11:56:00 +03:00
vvzvlad
382a910856 Enhance check_logs function in checker.py to capture and log head subscription ID. Added logic to extract "head sub id" from logs and return it in the status message, improving clarity in subscription state reporting. This update complements existing functionality for tracking last subscription ID, ensuring comprehensive log analysis. 2025-01-19 11:54:47 +03:00
vvzvlad
a0d2e74115 Update check_logs function in checker.py to modify subscription status reporting. Changed the return message from "Subscription" to "Sync" for improved clarity in log analysis. This adjustment enhances the understanding of the subscription state in the context of log processing. 2025-01-19 11:51:00 +03:00
vvzvlad
c1f23386b5 Refactor check_logs function in checker.py to improve logging and subscription status reporting. Renamed parameter from log_handler to logger for clarity. Added logging for cases where no subscription is found, enhancing the visibility of log analysis outcomes. 2025-01-19 11:42:55 +03:00
vvzvlad
e5a0eef020 Enhance check_logs function in checker.py to capture last subscription ID from logs. Added logic to identify and return the most recent subscription ID when "Ignored subscription creation" messages are detected. This improves the clarity of log analysis by providing specific subscription status, while maintaining the existing error handling for Docker log retrieval. 2025-01-19 11:42:14 +03:00
vvzvlad
c95fce1b69 Add clean_ansi function to checker.py for log processing
This update introduces a new `clean_ansi` function to remove ANSI escape sequences from log output, enhancing readability. The `check_logs` function has been modified to utilize this new function, ensuring that the logs retrieved from Docker are plain text, which improves clarity for subsequent log analysis.
2025-01-19 11:40:43 +03:00
vvzvlad
cd119be631 Update check_logs function in checker.py to suppress color output in docker logs retrieval. This change enhances log readability by ensuring that the output is plain text, improving clarity for subsequent log analysis. 2025-01-19 11:38:25 +03:00
vvzvlad
a5a27829de Refactor check_logs function in checker.py to simplify log handling. Removed subscription message detection logic and replaced it with a basic line printing mechanism. The function now returns a default status of "Idle", streamlining the process and reducing complexity in log analysis. 2025-01-19 11:37:27 +03:00
vvzvlad
246e073092 Update subscription pattern in check_logs function of checker.py to improve error message handling. Enhanced regex to capture error types more accurately, ensuring whitespace is stripped from error messages. This change refines log analysis and improves clarity in health check reporting. 2025-01-19 11:34:57 +03:00
vvzvlad
43dbcd0a17 Refactor check_logs function in checker.py to enhance subscription message handling. Updated regex to capture error types alongside subscription IDs, improving log analysis. Added logging for cases with no matches and refined status messages based on error type, enhancing clarity in health check reporting. 2025-01-19 11:34:16 +03:00
vvzvlad
c062ad8e66 Enhance package management in checker.py by implementing version control for required packages. Added warnings filter to suppress warning messages. The script now checks for specific package versions and installs them accordingly, improving dependency management and ensuring compatibility. This change enhances the robustness of the environment setup for the checker process. 2025-01-19 11:32:51 +03:00
vvzvlad
da56ef57f0 Comment out random sleep functionality in checker.py to simplify execution flow. This change removes unnecessary delays, enhancing the responsiveness of the checker process while maintaining existing logging and error handling mechanisms. 2025-01-19 11:31:51 +03:00
vvzvlad
b89e6c20ce Refactor self_update function in checker.py to accept a logger parameter for improved logging. This change enhances the update process by providing consistent logging messages for update checks, successes, and errors, thereby improving the clarity and maintainability of the script's update functionality. 2025-01-19 11:29:48 +03:00
vvzvlad
b93e5f890a Refactor check_logs function in checker.py to improve subscription message detection. Changed from single match to iterating over all matches, allowing retrieval of the last subscription ID found in logs. Updated logging to reflect the last subscription message or indicate absence, enhancing clarity in log analysis. 2025-01-19 11:11:38 +03:00
vvzvlad
625a8f71ae Update subscription pattern in check_logs function of checker.py to include a wildcard for error messages. This change enhances the regex matching for subscription completion, improving the accuracy of log analysis in health checks. 2025-01-19 09:54:48 +03:00
vvzvlad
8acb4768e3 Reduce random sleep duration in checker.py from 10 minutes to 1 minute to improve responsiveness of the checker process. This change enhances the overall efficiency of the health check execution. 2025-01-19 09:48:54 +03:00
vvzvlad
b9d966ff90 Update check_logs function in checker.py to retrieve logs from the 'infernet-node' container instead of using 'docker compose'. This change improves log retrieval efficiency by reducing the time window from 2 hours to 10 minutes, while also updating error handling to reflect the new command. Enhances clarity in log management for health checks. 2025-01-19 09:45:18 +03:00
vvzvlad
1e38b5aca6 Refactor check_logs function in checker.py to focus on subscription completion detection. Removed dynamic error and proof speed logging, simplifying the health check process. Now returns a status based on subscription completion, enhancing clarity and maintainability of the health check logic. 2025-01-19 09:44:17 +03:00
vvzvlad
49c13d9e42 Enhance health check in checker.py by adding a print statement for the fixed message "test ok". This improves visibility of the health status during execution while maintaining the existing error handling structure. 2025-01-18 17:57:29 +03:00
vvzvlad
4e50ee554b Comment out dynamic log data retrieval in checker.py, maintaining a fixed health status callback message "test ok". This change simplifies the health check process while preserving error handling functionality. 2025-01-18 15:03:02 +03:00
vvzvlad
f5706ac887 Update health status callback in checker.py to return a fixed message "test ok" instead of dynamic log data 2025-01-18 14:52:59 +03:00
vvzvlad
da787935df Add node-checker service 2025-01-18 13:59:41 +03:00