Skip to content

Commit

Permalink
Revert "Fix NPE bug in LogSlot#entry when recording rule ID (alibaba#…
Browse files Browse the repository at this point in the history
…2980)"

This reverts commit 0561959.
  • Loading branch information
LiYangSir authored Apr 10, 2023
1 parent f5d736c commit 857cd7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode
fireEntry(context, resourceWrapper, obj, count, prioritized, args);
} catch (BlockException e) {
EagleEyeLogUtil.log(resourceWrapper.getName(), e.getClass().getSimpleName(), e.getRuleLimitApp(),
context.getOrigin(), e.getRule() != null ? e.getRule().getId() : null, count);
context.getOrigin(), e.getRule().getId(), count);
throw e;
} catch (Throwable e) {
RecordLog.warn("Unexpected entry exception", e);
}

}

@Override
Expand Down

0 comments on commit 857cd7d

Please sign in to comment.