Skip to content

Commit

Permalink
[ruby] Antlr Parser Logging Level (#4632)
Browse files Browse the repository at this point in the history
Moved parser logging of memory clearing from INFO to DEBUG
  • Loading branch information
DavidBakerEffendi committed Jun 4, 2024
1 parent 8999ce1 commit b93288e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ResourceManagedParser(clearLimit: Double) extends AutoCloseable {
maybeAtn = Option(interp.atn)
val usedMemory = runtime.freeMemory.toDouble / runtime.totalMemory.toDouble
if (usedMemory >= clearLimit) {
logger.info(s"Runtime memory consumption at $usedMemory, clearing ANTLR DFA cache")
logger.debug(s"Runtime memory consumption at $usedMemory, clearing ANTLR DFA cache")
clearDFA()
}
val (programCtx, errors) = antlrParser.parse()
Expand Down

0 comments on commit b93288e

Please sign in to comment.