From a1ae3864fa6ceb8336171d334668c2a6597d9878 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 9 Apr 2023 15:57:21 +0200 Subject: [PATCH] Add debug logging --- Backend/BotInstance.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Backend/BotInstance.cs b/Backend/BotInstance.cs index 43a8146..9a3b804 100644 --- a/Backend/BotInstance.cs +++ b/Backend/BotInstance.cs @@ -64,11 +64,13 @@ public class BotInstance { return Task.CompletedTask; LastStatus = status; + Console.WriteLine($"Updating {_name} status to {(status ? "open" : "closed")}"); _bot.SendMessage(_chat, $"{_name} is {(status ? "open" : "closed")}"); Error = null; return Task.CompletedTask; } catch (Exception e) { + Console.WriteLine($"Error updating {_name} status: {e.Message}"); Error = e.Message; return Task.CompletedTask; }