Skip to content

gjs-util: Fallback to default log handler in other threads

Evan Welsh requested to merge ewlsh/fix-threading-with-logging into master

JavaScript functions can't be called from other threads, to prevent this, store which thread the custom writer was originally set from and then fallback to the default log writer if another thread calls the handler. Also fallback to the default writer if the custom writer returns UNHANDLED.

Fixes #481 (closed)

Merge request reports