Ref: simplify getInstance, do not put context on a singleton

This commit is contained in:
Sheepit Renderfarm
2024-11-20 23:13:00 +00:00
parent ac7572d0b0
commit 844d8b7f99
10 changed files with 32 additions and 33 deletions

View File

@@ -81,7 +81,7 @@ public class Linux 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);
@@ -141,7 +141,7 @@ public class Linux 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) {