aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations/Scripts/ScriptService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-11-04 08:21:43 -0600
committerGitHub <noreply@github.com>2024-11-04 08:21:43 -0600
commite7aefd66f1992dcecd9454df0771e1f29fae2b1d (patch)
tree14da14b514ab3755d03e025f95903eda47c789e0 /src/slskd/Integrations/Scripts/ScriptService.cs
parent5ebb679f4f7a24649e5117931e06138a9375110f (diff)
parent7f9a694da61bb046343d9f98ec2b5cd8b444e56b (diff)
downloadslskd-e7aefd66f1992dcecd9454df0771e1f29fae2b1d.tar.gz
Merge pull request #1238 from slskd/webhooks
Add the ability to call HTTP endpoints (webhooks) when application events are raised
Diffstat (limited to 'src/slskd/Integrations/Scripts/ScriptService.cs')
-rw-r--r--src/slskd/Integrations/Scripts/ScriptService.cs4
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);
}
}
});