TbLogNode optimization: skip processing with success when logger disabled during run-rime

This commit is contained in:
Sergey Matvienko 2024-06-10 20:44:49 +02:00
parent f96d9c377a
commit 47ac4ae56a

View File

@ -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;