diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-11-02 20:09:14 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-11-02 20:09:14 -0500 |
| commit | 800c6436cc435ed7efde7eedb3087b08aa2df14d (patch) | |
| tree | 13f73f48611ba6afb8cf88e4901638d94c13a991 /src | |
| parent | 746b2e6b2bd3f989319551e7b904f24243cf39c2 (diff) | |
| download | slskd-800c6436cc435ed7efde7eedb3087b08aa2df14d.tar.gz | |
include event name when logging script errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Integrations/Scripts/ScriptService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs index 48916b2d..227f2fb1 100644 --- a/src/slskd/Integrations/Scripts/ScriptService.cs +++ b/src/slskd/Integrations/Scripts/ScriptService.cs @@ -120,7 +120,7 @@ public class ScriptService } catch (Exception ex) { - Log.Warning(ex, "Failed to run script '{Script}': {Message}", script.Key, ex.Message); + Log.Warning(ex, "Failed to run script '{Script}' for event type {Event}: {Message}", script.Key, data.Type, ex.Message); } finally { @@ -130,7 +130,7 @@ public class ScriptService } catch (Exception ex) { - Log.Warning(ex, "Failed to clean up process started from script '{Script}': {Message}", script.Key, ex.Message); + Log.Warning(ex, "Failed to clean up process started from script '{Script}' for event type {Event}: {Message}", script.Key, data.Type, ex.Message); } } }); |
