Skip to content

Commit 2c4bca6

Browse files
committed
formatting
1 parent 8ed436c commit 2c4bca6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/uid2/shared/store/salt/RotatingSaltProvider.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ private SaltSnapshot loadSnapshot(JsonObject spec, String firstLevelSalt, SaltFi
133133
final long downloadStart = System.currentTimeMillis();
134134
SaltEntry[] entries = readInputStream(this.contentStreamProvider.download(path), saltFileParser, size);
135135
final long downloadEnd = System.currentTimeMillis();
136-
LOGGER.info("Salt file downloaded: {} ms", downloadEnd - downloadStart);
136+
String fileName = path.substring(path.lastIndexOf('/') + 1);
137+
if (fileName.contains("?")) {
138+
fileName = fileName.substring(0, fileName.indexOf("?"));
139+
}
140+
LOGGER.info("Salt file {} downloaded in {} ms", fileName, downloadEnd - downloadStart);
137141

138142
LOGGER.info("Loaded {} salts", size);
139143
return new SaltSnapshot(effective, expires, entries, firstLevelSalt);

0 commit comments

Comments
 (0)