Skip to content

Commit

Permalink
move initialisation of logger back to top
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
  • Loading branch information
jokraehe committed May 18, 2021
1 parent 5a7ac98 commit 0e36e35
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ private KafkaConsumerActor(final Connection connection,
final Source source, final boolean dryRun) {
super(connection, sourceAddress, inboundMappingProcessor, source);

log = DittoLoggerFactory.getThreadSafeDittoLoggingAdapter(this);

final Enforcement enforcement = source.getEnforcement().orElse(null);
final EnforcementFilterFactory<Map<String, String>, Signal<?>> headerEnforcementFilterFactory =
enforcement != null
Expand All @@ -65,7 +67,6 @@ private KafkaConsumerActor(final Connection connection,
() -> new KafkaMessageTransformer(source, sourceAddress, headerEnforcementFilterFactory,
inboundMonitor);
kafkaStream = new KafkaConsumerStream(factory, kafkaMessageTransformerFactory, dryRun);
log = DittoLoggerFactory.getThreadSafeDittoLoggingAdapter(this);
}

private static boolean isExternalMessage(final String key, final Object value) {
Expand Down

0 comments on commit 0e36e35

Please sign in to comment.