Skip to content

Commit

Permalink
Fix deduplication for OSCORE.
Browse files Browse the repository at this point in the history
Swap OSCORE and CongestionControl layers.
Add logback configuration for unittests.

Issue eclipse-californium#2294

Signed-off-by: Achim Kraus <[email protected]>
  • Loading branch information
boaks committed Oct 21, 2024
1 parent a369f97 commit dc58c04
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public OSCoreUdpStack(String tag, Configuration config, EndpointContextMatcher m
new ExchangeCleanupLayer(config),
new ObserveLayer(config),
new BlockwiseLayer(tag, false, config, matchingStrategy),
CongestionControlLayer.newImplementation(tag, config),
new ObjectSecurityLayer(ctxDb)};
new ObjectSecurityLayer(ctxDb),
CongestionControlLayer.newImplementation(tag, config)};
setLayers(layers);
}
}
21 changes: 21 additions & 0 deletions cf-oscore/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} %level [%logger{0}]: %msg \(%class{25}.%method:%line\)%n</pattern>
</encoder>
</appender>

<logger name="ch.qos.logback" level="ERROR" additivity="false">
<appender-ref ref="STDOUT" />
</logger>

<!-- Strictly speaking, the level attribute is not necessary since -->
<!-- the level of the root level is set to DEBUG by default. -->
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>

</configuration>

0 comments on commit dc58c04

Please sign in to comment.