[FIX] Add more logging to timestamp failed error

This commit is contained in:
Gravita 2024-11-05 08:52:59 +07:00
parent 926094076c
commit 912caa6b8a
No known key found for this signature in database
GPG key ID: 543A8F335C9CD633

View file

@ -88,7 +88,7 @@ private static void realMain(String[] args) throws Throwable {
ClientParams params = readParams(new InetSocketAddress("127.0.0.1", Launcher.getConfig().clientPort));
ClientLauncherMethods.verifyNoAgent();
if(params.timestamp > System.currentTimeMillis() || params.timestamp + 30*1000 < System.currentTimeMillis() ) {
LogHelper.error("Timestamp failed. Exit");
LogHelper.error("Timestamp failed: current %d | params %d | diff %d", System.currentTimeMillis(), params.timestamp, System.currentTimeMillis() - params.timestamp);
ClientLauncherMethods.exitLauncher(-662);
return;
}