修改:日志级别
This commit is contained in:
parent
0079bb2b27
commit
92c769c708
@ -226,7 +226,7 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//if (event)
|
//if (event)
|
||||||
logger.info(String.format("rpc-back:[%s]: %s", event.topic, event.value));
|
logger.finest(String.format("rpc-back:[%s]: %s", event.topic, event.value));
|
||||||
rpcAccept(event.value);
|
rpcAccept(event.value);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -244,7 +244,7 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
|
|||||||
if ((event = rpcCallQueue.take()) == null) {
|
if ((event = rpcCallQueue.take()) == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
logger.info(String.format("rpc-call:[%s] %s", event.topic, event.value));
|
logger.finest(String.format("rpc-call:[%s] %s", event.topic, event.value));
|
||||||
accept(event.topic, event.value);
|
accept(event.topic, event.value);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -359,9 +359,9 @@ public class ZHubClient extends AbstractConsumer implements IConsumer, IProducer
|
|||||||
send("timer", name);
|
send("timer", name);
|
||||||
});
|
});
|
||||||
if (retry > 0) {
|
if (retry > 0) {
|
||||||
logger.log(Level.WARNING, String.format("ZHubClient[%s][%s] %s Succeed!", getGroupid(), i + 1, retry > 0 ? "reconnection" : "init"));
|
logger.warning(String.format("ZHubClient[%s][%s] %s Succeed!", getGroupid(), i + 1, retry > 0 ? "reconnection" : "init"));
|
||||||
} else {
|
} else {
|
||||||
logger.log(Level.FINE, String.format("ZHubClient[%s] %s Succeed!", getGroupid(), retry > 0 ? "reconnection" : "init"));
|
logger.fine(String.format("ZHubClient[%s] %s Succeed!", getGroupid(), retry > 0 ? "reconnection" : "init"));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user