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

Why is println and not _os_log_internal used here? #326

Open
nbransby opened this issue Feb 15, 2023 · 2 comments
Open

Why is println and not _os_log_internal used here? #326

nbransby opened this issue Feb 15, 2023 · 2 comments

Comments

@nbransby
Copy link

println(throwable.getStackTrace().joinToString("\n"))

Means we can't get the stacktrace from the logs unless running in debugger

@rocketraman
Copy link
Contributor

The reason appears to be that logs are truncated when they are sent to the OS log.

Related discussion: #395.

@rocketraman
Copy link
Contributor

rocketraman commented Oct 11, 2024

Seems like this is no longer the case:

open fun logThrowable(osLogSeverity: UByte, throwable: Throwable) {
darwinLogger.log(osLogSeverity, throwable.getStackTrace().joinToString("\n"))
}

Weirdly changed in a commit titled "Doc update".

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

No branches or pull requests

2 participants