Skip to content

Commit

Permalink
fix: used scan in the warning key
Browse files Browse the repository at this point in the history
Fixed issue #1432
  • Loading branch information
lvca committed Jan 18, 2024
1 parent 86f71e4 commit e88ae66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ else if (Boolean.FALSE.equals(ridOrder))

if (WARNINGS_EVERY > 0) {
if (typeFileSize > 100_000_000) {
final Integer counter = WARNINGS.compute(typeName, (k, v) -> v == null ? 1 : v + 1);
final Integer counter = WARNINGS.compute(typeName + ".scan", (k, v) -> v == null ? 1 : v + 1);
if (counter % WARNINGS_EVERY == 1)
LogManager.instance().log(this, Level.WARNING,
"Attempt to scan type '%s' of total size %s %d times. This operation is very expensive, consider using an index",
Expand Down

0 comments on commit e88ae66

Please sign in to comment.