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
|
||||
public void onMsg(TbContext ctx, TbMsg msg) {
|
||||
if (!log.isInfoEnabled()) {
|
||||
ctx.tellSuccess(msg);
|
||||
return;
|
||||
}
|
||||
if (standard) {
|
||||
logStandard(ctx, msg);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user