Update logs and cache marketinfo
This commit is contained in:
@@ -553,7 +553,7 @@ public class TradingBot : Bot, ITradingBot
|
||||
}
|
||||
else
|
||||
{
|
||||
await LogWarning(
|
||||
await LogInformation(
|
||||
$"A position is already open for signal {previousSignal.Identifier}. Position flipping is currently not enable, the position will not be flipped.");
|
||||
SetSignalStatus(signal.Identifier, SignalStatus.Expired);
|
||||
}
|
||||
@@ -876,8 +876,7 @@ public class TradingBot : Bot, ITradingBot
|
||||
|
||||
private async Task LogWarning(string message)
|
||||
{
|
||||
message = $"[{Name}][{Identifier}] {message}";
|
||||
Logger.LogWarning(message);
|
||||
message = $"[{Identifier}] {message}";
|
||||
SentrySdk.CaptureException(new Exception(message));
|
||||
await SendTradeMessage(message, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user