Skip to content

Commit

Permalink
Merge pull request #136 from swisspost/develop
Browse files Browse the repository at this point in the history
PR for release
  • Loading branch information
mcweba authored Aug 29, 2023
2 parents 159a6fc + 8356711 commit b640fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.swisspush</groupId>
<artifactId>rest-storage</artifactId>
<version>3.0.16-SNAPSHOT</version>
<version>3.0.17-SNAPSHOT</version>
<name>rest-storage</name>
<description>
Persistence for REST resources in the filesystem or a redis database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class RedisStorage implements Storage {
private Optional<Float> currentMemoryUsageOptional = Optional.empty();

private final String ID;
private final String hostAndPort;

public RedisStorage(Vertx vertx, ModuleConfiguration config, RedisProvider redisProvider) {
this.expirableSet = config.getExpirablePrefix();
Expand All @@ -79,6 +80,7 @@ public RedisStorage(Vertx vertx, ModuleConfiguration config, RedisProvider redis
this.decimalFormat.setMaximumFractionDigits(1);

this.ID = UUID.randomUUID().toString();
this.hostAndPort = config.getRedisHost() + ":" + config.getPort();
this.lock = new RedisBasedLock(redisProvider);

// load all the lua scripts
Expand Down Expand Up @@ -218,7 +220,7 @@ private void logPropertyWarning(String property, Exception ex) {
}

private void logCleanupResult(Object resultEvent) {
log.debug(resultEvent.toString());
log.debug("instance {} -> {}" , hostAndPort, resultEvent.toString());
}

private enum LuaScript {
Expand Down

0 comments on commit b640fc4

Please sign in to comment.