Remove debug for position updated

This commit is contained in:
2025-10-27 11:05:15 +07:00
parent abd5eb675c
commit ce43bbf31f

View File

@@ -1061,12 +1061,12 @@ public class TradingBotBase : ITradingBot
if (!Config.IsForBacktest) if (!Config.IsForBacktest)
{ {
await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory, await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory,
async messengerService => { await messengerService.SendPosition(position); }); async messengerService => { await messengerService.SendPosition(position); });
} }
await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`"); await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`");
return position; return position;
} }
else else
{ {
@@ -2653,9 +2653,6 @@ public class TradingBotBase : ITradingBot
}; };
await agentGrain.OnPositionUpdatedAsync(positionUpdatedEvent); await agentGrain.OnPositionUpdatedAsync(positionUpdatedEvent);
// No need to notify platform grain, it will be notified when position is closed or opened only
await LogDebug($"Sent position updated event to both grains for position {position.Identifier}");
break; break;
} }
}); });