Skip to content

Commit a19ca40

Browse files
committed
Removed logPath
1 parent 6818188 commit a19ca40

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class Local {
1818
List<String> command;
1919
Map<String, String> startOptions;
2020
String binaryPath;
21-
String logFilePath;
2221
int pid = 0;
2322

2423
private LocalProcess proc = null;
@@ -57,16 +56,11 @@ public void start(Map<String, String> options) throws Exception {
5756
binaryPath = lb.getBinaryPath();
5857
}
5958

60-
logFilePath = options.get("logfile") == null ? (System.getProperty("user.dir") + "/local.log") : options.get("logfile");
6159
makeCommand(options, "start");
6260

6361
if (options.get("onlyCommand") != null) return;
6462

6563
if (proc == null) {
66-
FileWriter fw = new FileWriter(logFilePath);
67-
fw.write("");
68-
fw.close();
69-
7064
proc = runCommand(command);
7165
BufferedReader stdoutbr = new BufferedReader(new InputStreamReader(proc.getInputStream()));
7266
BufferedReader stderrbr = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
@@ -123,8 +117,6 @@ private void makeCommand(Map<String, String> options, String opCode) {
123117
command.add(binaryPath);
124118
command.add("-d");
125119
command.add(opCode);
126-
command.add("-logFile");
127-
command.add(logFilePath);
128120
command.add(options.get("key"));
129121

130122
for (Map.Entry<String, String> opt : options.entrySet()) {

0 commit comments

Comments
 (0)