-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decrease log level for annotation problems (#4083)
- Loading branch information
Showing
7 changed files
with
45 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
*/ | ||
|
||
/* | ||
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved. | ||
* Portions Copyright (c) 2020, Chris Fraire <[email protected]>. | ||
*/ | ||
package org.opengrok.indexer.history; | ||
|
@@ -101,14 +101,14 @@ public void processStream(InputStream input) throws IOException { | |
String author = revAuthor.get(revision); | ||
annotation.addLine(revision, author, true); | ||
} else { | ||
LOGGER.log(Level.SEVERE, | ||
"Error: did not find annotation in line {0}: [{1}]", | ||
new Object[]{lineno, line}); | ||
LOGGER.log(Level.WARNING, | ||
"Error: did not find annotation in line {0} for ''{1}'': [{2}]", | ||
new Object[]{lineno, this.file, line}); | ||
} | ||
} | ||
} catch (IOException e) { | ||
LOGGER.log(Level.SEVERE, | ||
"Error: Could not read annotations for " + annotation.getFilename(), e); | ||
LOGGER.log(Level.WARNING, | ||
String.format("Error: Could not read annotations for '%s'", this.file), e); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
*/ | ||
|
||
/* | ||
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved. | ||
* Portions Copyright (c) 2018, Chris Fraire <[email protected]>. | ||
*/ | ||
package org.opengrok.indexer.history; | ||
|
@@ -333,9 +333,9 @@ protected Annotation parseAnnotation(Reader input, String fileName) | |
String author = matcher.group(1); | ||
ret.addLine(rev, author, true); | ||
} else if (hasStarted) { | ||
LOGGER.log(Level.SEVERE, | ||
"Error: did not find annotation in line {0}: [{1}]", | ||
new Object[]{String.valueOf(lineno), line}); | ||
LOGGER.log(Level.WARNING, | ||
"Error: did not find annotation in line {0} for ''{1}'': [{2}]", | ||
new Object[]{String.valueOf(lineno), fileName, line}); | ||
} | ||
} | ||
return ret; | ||
|