This commit is contained in:
绝尘 2024-03-28 00:22:43 +08:00
parent ff3d877a37
commit 9d23c84cba

View File

@ -423,11 +423,9 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
timerMap.forEach((name, timer) -> { timerMap.forEach((name, timer) -> {
send("timer", name); send("timer", name);
}); });
if (retry > 0) { logger.log(retry > 0 ? Level.WARNING : Level.FINE,
logger.warning(String.format("ZHubClient[%s][%s] %s Succeed", getGroupid(), i + 1, retry > 0 ? "reconnection" : "init")); String.format("ZHubClient[%s]%s [%s] Succeed!", getGroupid(), retry > 0 ? "[" + (i + 1) + "]" : "", retry > 0 ? "reconnection" : "init"));
} else {
logger.fine(String.format("ZHubClient[%s] %s Succeed", getGroupid(), retry > 0 ? "reconnection" : "init"));
}
return true; return true;
} catch (Exception e) { } catch (Exception e) {
if (i == 0) { if (i == 0) {