Skip to content
Snippets Groups Projects
Commit feaca922 authored by Mick Jordan's avatar Mick Jordan
Browse files

switch from fastr.logchild system property to env var FASTR_LOGCHILD for...

switch from fastr.logchild system property to env var FASTR_LOGCHILD for logging system function calls
parent 1b947318
Branches
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ public abstract class SystemFunction extends RBuiltinNode { ...@@ -45,7 +45,7 @@ public abstract class SystemFunction extends RBuiltinNode {
if (shell == null) { if (shell == null) {
shell = "/bin/sh"; shell = "/bin/sh";
} }
if (System.getProperty("fastr.logchild") != null) { if (RContext.getInstance().stateREnvVars.getMap().get("FASTR_LOGCHILD") != null) {
System.out.printf("FastR system: %s -c %s%n", shell, command.getDataAt(0)); System.out.printf("FastR system: %s -c %s%n", shell, command.getDataAt(0));
} }
ProcessBuilder pb = new ProcessBuilder(shell, "-c", command.getDataAt(0)); ProcessBuilder pb = new ProcessBuilder(shell, "-c", command.getDataAt(0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment