Skip to content

Commit 6836396

Browse files
committed
add comments
1 parent 5447a2c commit 6836396

File tree

1 file changed

+2
-1
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/util

1 file changed

+2
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/util/Progress.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* to go through, it will ping an instance of this class for each item completed.
4242
* This class will then log based on the number of pings. The bigger the progress,
4343
* the higher log level ({@link Level} value) will be used. The default base level is {@code Level.INFO}.
44+
* Regardless of the base level, maximum 4 log levels will be used.
4445
*/
4546
public class Progress implements AutoCloseable {
4647
private final Logger logger;
@@ -99,7 +100,7 @@ public Progress(Logger logger, String suffix, long totalCount, Level logLevel) {
99100
this.totalCount = totalCount;
100101
}
101102

102-
// Note: Level.CONFIG is missing
103+
// Note: Level.CONFIG is missing as it does not make too much sense for progress reporting semantically.
103104
final List<Level> standardLevels = Arrays.asList(Level.OFF, Level.SEVERE, Level.WARNING, Level.INFO,
104105
Level.FINE, Level.FINER, Level.FINEST, Level.ALL);
105106
int i = standardLevels.indexOf(baseLogLevel);

0 commit comments

Comments
 (0)