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)
{
await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory,
async messengerService => { await messengerService.SendPosition(position); });
}
await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory,
async messengerService => { await messengerService.SendPosition(position); });
}
await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`");
return position;
await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`");
return position;
}
else
{
@@ -2653,9 +2653,6 @@ public class TradingBotBase : ITradingBot
};
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;
}
});