Skip to content
Snippets Groups Projects
Commit d3e69313 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] fix i18N init error at startup

parent 1cd31395
No related branches found
No related tags found
No related merge requests found
Pipeline #4210 passed
...@@ -54,7 +54,7 @@ public class RestNetworkPeeringGetAction extends BaseRestHandler { ...@@ -54,7 +54,7 @@ public class RestNetworkPeeringGetAction extends BaseRestHandler {
super(settings, controller, client); super(settings, controller, client);
if (StringUtils.isBlank(pluginSettings.getClusterRemoteHost())) { if (StringUtils.isBlank(pluginSettings.getClusterRemoteHost())) {
logger.warn(I18n.t("duniter.p2p.error.noRemoteUrl")); logger.warn(String.format("The cluster address can not be published on the network. /\\!\\\\ Fill in the options [cluster.remote.xxx] in the configuration (recommended)."));
} }
else { else {
securityController.allow(RestRequest.Method.GET, "(/[^/]+)?/network/peering"); securityController.allow(RestRequest.Method.GET, "(/[^/]+)?/network/peering");
......
...@@ -70,7 +70,7 @@ public class RestNetworkPeeringPostAction extends BaseRestHandler { ...@@ -70,7 +70,7 @@ public class RestNetworkPeeringPostAction extends BaseRestHandler {
super(settings, controller, client); super(settings, controller, client);
if (StringUtils.isBlank(pluginSettings.getClusterRemoteHost())) { if (StringUtils.isBlank(pluginSettings.getClusterRemoteHost())) {
logger.warn(I18n.t("duniter.p2p.error.noRemoteUrl")); logger.warn(String.format("The cluster address can not be published on the network. /\\!\\\\ Fill in the options [cluster.remote.xxx] in the configuration (recommended)."));
} }
else { else {
securityController.allow(RestRequest.Method.POST, "/network/peering"); securityController.allow(RestRequest.Method.POST, "/network/peering");
......
...@@ -32,7 +32,7 @@ public class RestUserShareLinkAction extends AbstractRestShareLinkAction impleme ...@@ -32,7 +32,7 @@ public class RestUserShareLinkAction extends AbstractRestShareLinkAction impleme
setResolver(this); setResolver(this);
if (StringUtils.isBlank(pluginSettings.getClusterRemoteUrlOrNull())) { if (StringUtils.isBlank(pluginSettings.getClusterRemoteUrlOrNull())) {
log.warn(I18n.t("duniter4j.es.share.error.noRemoteUrl")); log.warn(String.format("The cluster address can not be published on the network. /\\!\\\\ Fill in the options [cluster.remote.xxx] in the configuration (recommended)."));
} }
this.pluginSettings = pluginSettings; this.pluginSettings = pluginSettings;
this.userService = userService; this.userService = userService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment