Skip to content

Conversation

@rmohan20
Copy link
Contributor

Increments log levels on BaseApexLexer so that info lines such as the following are not printed to console:

INFO: Deduped array ApexLexer.DFA22_transition. Found 7075528 shorts which is 13MB not including array overhead. Removed 6418975 shorts which is 12MB not counting array overhead. Took 8 ms.

@rmohan20 rmohan20 requested a review from jfeingold35 July 29, 2022 19:11
*/
private static void incrementLogLevel() {
Logger jorjeLogger = Logger.getLogger(BaseApexLexer.class.getName());
jorjeLogger.setLevel(Level.WARNING);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unable to repro the info log line consistently and hence don't have a unit test.

@rmohan20 rmohan20 merged commit b6b1a61 into dev-3 Jul 29, 2022
@rmohan20 rmohan20 linked an issue Jul 29, 2022 that may be closed by this pull request
@stephen-carter-at-sf stephen-carter-at-sf deleted the rm/containJorjeLogs branch May 17, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apex.jorje.parser.impl.BaseApexLexer dedupe

3 participants