diff options
Diffstat (limited to 'src')
| -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) |
