auto-sync
This commit is contained in:
parent
90ecd0e92b
commit
48996efdf2
|
@ -36,10 +36,12 @@ public enum FileLog {
|
|||
@Nullable
|
||||
private OutputStream fileLog; // null if not opened yet or already closed
|
||||
|
||||
private FileLog() {
|
||||
FileLog() {
|
||||
}
|
||||
|
||||
public void start() {
|
||||
if (fileLog != null)
|
||||
return;
|
||||
try {
|
||||
fileLog = openLog();
|
||||
} catch (FileNotFoundException e) {
|
||||
|
|
|
@ -69,7 +69,6 @@ public class Launcher {
|
|||
public Launcher(String port) {
|
||||
this.port = port;
|
||||
staticFrame = frame.getFrame();
|
||||
FileLog.MAIN.start();
|
||||
FileLog.MAIN.logLine("Console " + CONSOLE_VERSION);
|
||||
|
||||
getConfig().getRoot().setProperty(PORT_KEY, port);
|
||||
|
@ -183,6 +182,7 @@ public class Launcher {
|
|||
}
|
||||
|
||||
public static void main(final String[] args) throws Exception {
|
||||
FileLog.MAIN.start();
|
||||
getConfig().load();
|
||||
Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler());
|
||||
VersionChecker.start();
|
||||
|
|
|
@ -165,6 +165,7 @@ public class StartupFrame {
|
|||
private void findAndApplyPorts() {
|
||||
List<String> ports = findAllAvailablePorts();
|
||||
if (!currentlyDisplayedPorts.equals(ports) || isFirstTimeApplyingPorts) {
|
||||
FileLog.MAIN.logLine("Available ports " + ports);
|
||||
isFirstTimeApplyingPorts = false;
|
||||
connectPanel.setVisible(!ports.isEmpty());
|
||||
noPortsMessage.setVisible(ports.isEmpty());
|
||||
|
|
Loading…
Reference in New Issue