From 72a556c7cf93bd50abbe987fed7f8c787375b499 Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Tue, 24 Sep 2024 22:02:13 +1200
Subject: [PATCH] added some logs in greet service

---
 .../Modules/Administration/GreetBye/GreetService.cs        | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/EllieBot/Modules/Administration/GreetBye/GreetService.cs b/src/EllieBot/Modules/Administration/GreetBye/GreetService.cs
index 70db21f..f46c028 100644
--- a/src/EllieBot/Modules/Administration/GreetBye/GreetService.cs
+++ b/src/EllieBot/Modules/Administration/GreetBye/GreetService.cs
@@ -291,8 +291,9 @@ public class GreetService : IEService, 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 : IEService, IReadyExecutor
                     }
                 }
             }
-            catch
+            catch(Exception ex)
             {
-                // ignored
+                Log.Error(ex, "Error in GreetService.OnUserJoined. This should not happen. Please report it");
             }
         });
         return Task.CompletedTask;