Skip to content

Commit

Permalink
#502: deactivate californium health logger by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed May 4, 2018
1 parent 79c8cab commit e438d74
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ public static NetworkConfig createDefaultNetworkConfig() {
networkConfig.set(Keys.MID_TRACKER, "NULL");
networkConfig.set(Keys.MAX_ACTIVE_PEERS, 10);
networkConfig.set(Keys.PROTOCOL_STAGE_THREAD_COUNT, 1);
// Workaround for https://github.com/eclipse/leshan/issues/502
// TODO remove this line when we will integrate Cf 2.0.0-M10
networkConfig.set(Keys.HEALTH_STATUS_INTERVAL, 0);

return networkConfig;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ public LeshanBootstrapServerBuilder disableSecuredEndpoint() {
public static NetworkConfig createDefaultNetworkConfig() {
NetworkConfig networkConfig = new NetworkConfig();
networkConfig.set(Keys.MID_TRACKER, "NULL");
// Workaround for https://github.com/eclipse/leshan/issues/502
// TODO remove this line when we will integrate Cf 2.0.0-M10
networkConfig.set(Keys.HEALTH_STATUS_INTERVAL, 0);
return networkConfig;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public LeshanServerBuilder setClientAwakeTimeProvider(ClientAwakeTimeProvider aw
this.awakeTimeProvider = awakeTimeProvider;
return this;
}

/**
* Sets a new {@link RegistrationIdProvider} object different from the default one (Random string).
*
Expand All @@ -350,6 +350,9 @@ public void setRegistrationIdProvider(RegistrationIdProvider registrationIdProvi
public static NetworkConfig createDefaultNetworkConfig() {
NetworkConfig networkConfig = new NetworkConfig();
networkConfig.set(Keys.MID_TRACKER, "NULL");
// Workaround for https://github.com/eclipse/leshan/issues/502
// TODO remove this line when we will integrate Cf 2.0.0-M10
// networkConfig.set(Keys.HEALTH_STATUS_INTERVAL, 0);
return networkConfig;
}

Expand Down

0 comments on commit e438d74

Please sign in to comment.