Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase default stack frame and make it configurable #647

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

valydia
Copy link
Contributor

@valydia valydia commented Apr 14, 2023

No description provided.

@CLAassistant
Copy link

CLAassistant commented Apr 14, 2023

CLA assistant check
All committers have signed the CLA.

@@ -83,7 +85,11 @@ object Result {
.fold(className)(m => s"$className: $m")
}

val stackTraceLimit = if (location.isDefined) Some(10) else None
val maxStackFrames = sys.props.get("WEAVER_MAX_STACKFRAMES").flatMap(s =>
Try(s.trim.toInt).toOption).getOrElse(50)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

toIntOption is not available before scala 2.13

@Baccata Baccata merged commit 3da8ac3 into disneystreaming:main Apr 14, 2023
13 checks passed
@valydia valydia deleted the configure-stacktracelimit branch April 14, 2023 16:37
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.

None yet

3 participants