Skip to content

Commit fcbdfd0

Browse files
committed
log the latest cached revision
1 parent 44b9fd7 commit fcbdfd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.history;
@@ -715,6 +715,7 @@ private void storeLatestCachedRevision(Repository repository, String rev) {
715715
Path newPath = Path.of(getRepositoryCachedRevPath(repository));
716716
try (Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newPath.toFile())))) {
717717
writer.write(rev);
718+
LOGGER.finest(() -> String.format("stored latest cached revision %s for repository %s", rev, repository));
718719
} catch (IOException ex) {
719720
LOGGER.log(Level.WARNING,
720721
String.format("Cannot write latest cached revision to file for repository %s", repository), ex);

0 commit comments

Comments
 (0)