TbLogNode optimization: skip processing with success when logger disabled during run-rime
This commit is contained in:
parent
f96d9c377a
commit
47ac4ae56a
@ -67,6 +67,10 @@ public class TbLogNode implements TbNode {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onMsg(TbContext ctx, TbMsg msg) {
|
public void onMsg(TbContext ctx, TbMsg msg) {
|
||||||
|
if (!log.isInfoEnabled()) {
|
||||||
|
ctx.tellSuccess(msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (standard) {
|
if (standard) {
|
||||||
logStandard(ctx, msg);
|
logStandard(ctx, msg);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user