Ver código fonte

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 1 semana atrás
pai
commit
1233092bf4
2 arquivos alterados com 2 adições e 2 exclusões
  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"))