Ref: simplify getInstance, do not put context on a singleton
This commit is contained in:
@@ -54,7 +54,7 @@ public class Mac extends OS {
|
||||
actual_command.add(0, NICE_BINARY_PATH);
|
||||
}
|
||||
else {
|
||||
Log.getInstance(null).error("No low priority binary, will not launch renderer in normal priority");
|
||||
Log.getInstance().error("No low priority binary, will not launch renderer in normal priority");
|
||||
}
|
||||
ProcessBuilder builder = new ProcessBuilder(actual_command);
|
||||
builder.redirectErrorStream(true);
|
||||
@@ -111,7 +111,7 @@ public class Mac extends OS {
|
||||
hasNiceBinary = true;
|
||||
}
|
||||
catch (IOException e) {
|
||||
Log.getInstance(null).error("Failed to find low priority binary, will not launch renderer in normal priority (" + e + ")");
|
||||
Log.getInstance().error("Failed to find low priority binary, will not launch renderer in normal priority (" + e + ")");
|
||||
}
|
||||
finally {
|
||||
if (process != null) {
|
||||
|
||||
Reference in New Issue
Block a user