Commit Graph

17 Commits

Author SHA1 Message Date
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