Fix a bit the sdk and trades
This commit is contained in:
@@ -963,14 +963,29 @@ public class TradingBot : Bot, ITradingBot
|
||||
private async Task LogInformation(string message)
|
||||
{
|
||||
Logger.LogInformation(message);
|
||||
await SendTradeMessage(message);
|
||||
try
|
||||
{
|
||||
await SendTradeMessage(message);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task LogWarning(string message)
|
||||
{
|
||||
message = $"[{Identifier}] {message}";
|
||||
SentrySdk.CaptureException(new Exception(message));
|
||||
await SendTradeMessage(message, true);
|
||||
|
||||
try
|
||||
{
|
||||
await SendTradeMessage(message, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task SendTradeMessage(string message, bool isBadBehavior = false)
|
||||
|
||||
Reference in New Issue
Block a user