Skip to content

Commit c95c546

Browse files
authored
logging improvements for Subversion (#4189)
1 parent 75cd1e5 commit c95c546

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
* Portions Copyright (c) 2020, 2023, Ric Harris <[email protected]>.
2424
*/
@@ -112,7 +112,7 @@ public void startElement(String uri, String localName, String qname, Attributes
112112
entry.setRevision(attr.getValue("revision"));
113113
} else if ("path".equals(qname)) {
114114
if (attr.getIndex(COPYFROM_PATH) != -1) {
115-
LOGGER.info("rename for:" + attr.getValue(COPYFROM_PATH) );
115+
LOGGER.log(Level.FINER, "rename for {0}", attr.getValue(COPYFROM_PATH));
116116
if ("dir".equals(attr.getValue("kind"))) {
117117
isRenamedDir = true;
118118
} else {
@@ -158,7 +158,8 @@ public void endElement(String uri, String localName, String qname) throws SAXExc
158158
renamedToDirectoryRevisions.put(path.intern(), entry.getRevision());
159159
}
160160
} else {
161-
LOGGER.log(Level.FINER, "Skipping file outside repository: " + s);
161+
LOGGER.log(Level.FINER, "Skipping file ''{0}'' outside repository ''{1}''",
162+
new Object[]{s, this.home});
162163
}
163164
} else if ("msg".equals(qname)) {
164165
entry.setMessage(s);

0 commit comments

Comments
 (0)