Repository navigation
Keep the engine quiet in release builds - #11
Conversation
Obsidian asks plugins not to log. The released plugin printed the engine's DEBUG trace, including the DOT for every render.
ConsoleLogger called console.log for log, warn and debug in every build, bypassing WASI, so a plugin could not silence it. Release builds ship in the plugins and now pass only errors on; debug builds keep the trace.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
The wasm engine's
ConsoleLoggercalledconsole.logthrough JavaScriptKit forlog,warnanddebugin every build. That bypasses WASI, so a plugin cannot silence it.Release builds ship in the Obsidian and VS Code plugins, where Obsidian's guidelines allow only errors in the console. Debug builds keep the full trace.
Companion: Vithanco/obsidian-vithanco#20, which stops the plugin's WASI output and the generated glue the directory review flagged.
Evidence
rendering writes nothing to the console, fails on the released 1.0.11 with 24 lines:DEBUG: [GraphvizLibLayoutEngine] === DOT Output ===, the full DOT for each render, and[EdgeRenderer] Rendered 1 edges.After:
just obsidian-smokepasses all 6 checks in Obsidian 1.15.1 with a release engine from this branch.just testpasses: Swift suites (3 known issues, unchanged), 66 wasm smoke, 216 editor browser, shell tests.Merge Danger
Door: two-way
Blast Radius: console
Release builds of the website editor log no engine trace either; use a debug build for that.
🤖 Generated with Claude Code
Summary by CodeRabbit