diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-02-26 22:12:55 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-02-26 22:12:55 -0600 |
| commit | bc622aab1f445d27a323daa3a64a25c27fa73307 (patch) | |
| tree | 7268f502ff2de923285263efc299547593b1c2fc /src/slskd/Integrations/Scripts/ScriptService.cs | |
| parent | a39936fe06d623967f68dc0f154c487657106dc3 (diff) | |
| download | slskd-bc622aab1f445d27a323daa3a64a25c27fa73307.tar.gz | |
add logs to indicate mode
Diffstat (limited to 'src/slskd/Integrations/Scripts/ScriptService.cs')
| -rw-r--r-- | src/slskd/Integrations/Scripts/ScriptService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs index d4e90d7e..3a05df04 100644 --- a/src/slskd/Integrations/Scripts/ScriptService.cs +++ b/src/slskd/Integrations/Scripts/ScriptService.cs @@ -106,6 +106,8 @@ public class ScriptService // this is designed to be the 'pit of success' for this feature that will work for most users, // who most likely have not read the docs and expect this to work like a command line. // users are on the hook for properly (and safely) quoting arguments + Log.Debug("Running script '{Script}' in 'command mode'", script.Key); + process = new Process() { StartInfo = new ProcessStartInfo(fileName: executable) @@ -126,6 +128,8 @@ public class ScriptService // curiously the only way to pass a list of args (instead of a string). if no executable has been // specified, the system shell is used. this mode is for maximalists who know what they are doing // and want granular control + Log.Debug("Running script '{Script}' in 'args list mode'", script.Key); + process = new Process() { StartInfo = new ProcessStartInfo( @@ -145,6 +149,7 @@ public class ScriptService // 'args' mode is the default mode // run the specified executable, or if not specified, the system shell. pass the args string // (which may be empty or null) to ProcessStartInfo + Log.Debug("Running script '{Script}' in 'args mode'", script.Key); process = new Process() { StartInfo = new ProcessStartInfo(fileName: executable) |
