Enhance OKXCollector with improved heartbeat and logging functionality
- Added logger parameter to the OKXCollector to enable detailed ping/pong logging. - Updated message processing methods to maintain heartbeat and track data reception timestamps. - Adjusted ProductionManager to disable auto-restart and enable full logging for debugging WebSocket issues. - Enhanced overall logging capabilities to facilitate better monitoring and troubleshooting of data collection processes.
This commit is contained in:
@@ -123,11 +123,11 @@ class ProductionManager:
|
||||
symbol=symbol,
|
||||
data_types=data_types,
|
||||
component_name=f"okx_collector_{symbol.replace('-', '_').lower()}",
|
||||
auto_restart=self.config.get('data_collection', {}).get('auto_restart', True),
|
||||
health_check_interval=self.config.get('data_collection', {}).get('health_check_interval', 30.0),
|
||||
auto_restart=False, # Disable auto-restart to prevent health check interference
|
||||
health_check_interval=self.config.get('data_collection', {}).get('health_check_interval', 120.0),
|
||||
store_raw_data=self.config.get('data_collection', {}).get('store_raw_data', True),
|
||||
logger=self.logger,
|
||||
log_errors_only=True
|
||||
log_errors_only=False # Enable full logging temporarily to debug WebSocket issues
|
||||
)
|
||||
|
||||
# Replace the default data processor with our custom one
|
||||
|
||||
Reference in New Issue
Block a user