Skip to content

Commit

Permalink
Fix the wrong parameter in the log. (apache#14309)
Browse files Browse the repository at this point in the history
### Motivation

Bad parameters in the log will always print "null", which can confuse users.

### Modifications

- Correct exception parameter.

(cherry picked from commit 9b003f9)
  • Loading branch information
mattisonchao authored and michaeljmarshall committed Feb 24, 2022
1 parent d99b609 commit 5748d8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private void initPolicesCache(SystemTopicClient.Reader<PulsarEvent> reader, Comp
reader.readNextAsync().whenComplete((msg, e) -> {
if (e != null) {
log.error("[{}] Failed to read event from the system topic.",
reader.getSystemTopic().getTopicName(), ex);
reader.getSystemTopic().getTopicName(), e);
future.completeExceptionally(e);
readerCaches.remove(reader.getSystemTopic().getTopicName().getNamespaceObject());
policyCacheInitMap.remove(reader.getSystemTopic().getTopicName().getNamespaceObject());
Expand Down

0 comments on commit 5748d8d

Please sign in to comment.