better logging
This commit is contained in:
parent
0808372d34
commit
fabe51e9c5
|
@ -197,7 +197,7 @@ public class Autoupdate {
|
||||||
return null; // just paranoia check
|
return null; // just paranoia check
|
||||||
return fullName;
|
return fullName;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err.println("Error reading " + BUNDLE_NAME_FILE);
|
System.err.println(new Date() + ": Error reading " + BUNDLE_NAME_FILE);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.io.IOException;
|
||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Andrey Belomutskiy
|
* @author Andrey Belomutskiy
|
||||||
|
@ -70,7 +71,7 @@ public class TcpConnector {
|
||||||
s.close();
|
s.close();
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.out.println("Connection refused in getAvailablePorts(): simulator not running");
|
System.out.println(new Date() + ": Connection refused in getAvailablePorts(): simulator not running");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -64,9 +65,9 @@ public class VersionChecker {
|
||||||
}
|
}
|
||||||
|
|
||||||
final Integer javaVersion = parseNotNull(map.get(JAVA_CONSOLE_TAG), "VC value");
|
final Integer javaVersion = parseNotNull(map.get(JAVA_CONSOLE_TAG), "VC value");
|
||||||
System.out.println("Server recommends java_console version " + javaVersion + " or newer");
|
System.out.println(new Date() + ": Server recommends java_console version " + javaVersion + " or newer");
|
||||||
showUpdateWarningIfNeeded("dev console", javaVersion, CONSOLE_VERSION);
|
showUpdateWarningIfNeeded("dev console", javaVersion, CONSOLE_VERSION);
|
||||||
System.out.println("Server recommends firmware " + map.get(FIRMWARE_TAG) + " or newer");
|
System.out.println(new Date() + ": Server recommends firmware " + map.get(FIRMWARE_TAG) + " or newer");
|
||||||
|
|
||||||
String criticalUrl = map.get("critical_url");
|
String criticalUrl = map.get("critical_url");
|
||||||
if (criticalUrl != null && !criticalUrl.trim().isEmpty()) {
|
if (criticalUrl != null && !criticalUrl.trim().isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue