Skip to content

Commit 293ff32

Browse files
committed
Show full path when logging missing xref
1 parent a4876aa commit 293ff32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2017-2019, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.index;
2525

@@ -1810,8 +1810,9 @@ private IndexAnalysisSettings readAnalysisSettings() throws IOException {
18101810

18111811
private boolean xrefExistsFor(String path) {
18121812
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
1813-
if (!whatXrefFile(path, env.isCompressXref()).exists()) {
1814-
LOGGER.log(Level.FINEST, "Missing {0}", path);
1813+
File xrefFile = whatXrefFile(path, env.isCompressXref());
1814+
if (!xrefFile.exists()) {
1815+
LOGGER.log(Level.FINEST, "Missing {0}", xrefFile);
18151816
return false;
18161817
}
18171818

0 commit comments

Comments
 (0)