From b97c486b807ee25fb6d178da6e8f549a928e8347 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 24 Sep 2024 01:57:19 +0000 Subject: [PATCH] dev: added some logs in greet service --- .../Modules/Administration/GreetBye/GreetService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs b/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs index cc1f78b18..f0721453a 100644 --- a/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs +++ b/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs @@ -291,8 +291,9 @@ public class GreetService : INService, IReadyExecutor await _sender.Response(user).Text(smartText).Sanitize(false).SendAsync(); } - catch + catch(Exception ex) { + Log.Error(ex, "Error sending greet dm"); return false; } @@ -335,9 +336,9 @@ public class GreetService : INService, IReadyExecutor } } } - catch + catch(Exception ex) { - // ignored + Log.Error(ex, "Error in GreetService.OnUserJoined. This should not happen. Please report it"); } }); return Task.CompletedTask;