Quellcode durchsuchen

Change logging level from INFO to DEBUG in RiskCleanupManager for open positions check. This adjustment improves the granularity of log messages without cluttering the info logs.

Carles Sentis vor 1 Woche
Ursprung
Commit
1233092bf4
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/monitoring/risk_cleanup_manager.py
  2. 1 1
      trading_bot.py

+ 1 - 1
src/monitoring/risk_cleanup_manager.py

@@ -132,7 +132,7 @@ class RiskCleanupManager:
             stats = self.trading_engine.get_stats()
             positions = stats.get_open_positions() if stats else []
             if not positions:
-                logger.info("No open positions found in DB for risk management check.")
+                logger.debug("No open positions found in DB for risk management check.")
                 await self._cleanup_orphaned_stop_losses() # Call within class
                 return
 

+ 1 - 1
trading_bot.py

@@ -14,7 +14,7 @@ from datetime import datetime
 from pathlib import Path
 
 # Bot version
-BOT_VERSION = "2.4.218"
+BOT_VERSION = "2.4.219"
 
 # Add src directory to Python path
 sys.path.insert(0, str(Path(__file__).parent / "src"))