Skip to content

Commit cc55e0a

Browse files
fixed age threshold log line
1 parent 69b5892 commit cc55e0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uid2/admin/vertx/service/SaltService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.time.*;
2323
import java.time.format.DateTimeFormatter;
2424
import java.util.*;
25+
import java.util.stream.Collectors;
2526

2627
import static com.uid2.admin.vertx.Endpoints.*;
2728

@@ -138,7 +139,7 @@ private void handleSaltRotate(RoutingContext rc) {
138139
} else {
139140
ageThresholds = SALT_ROTATION_AGE_THRESHOLDS;
140141
}
141-
LOGGER.info("Salt rotation age thresholds: {}", Arrays.toString(ageThresholds));
142+
LOGGER.info("Salt rotation age thresholds in seconds: {}", Arrays.stream(ageThresholds).map(Duration::toSeconds).collect(Collectors.toList()));
142143

143144
final TargetDate targetDate =
144145
RequestUtil.getDate(rc, "target_date", DateTimeFormatter.ISO_LOCAL_DATE)

0 commit comments

Comments
 (0)