Replies: 2 comments
|
On top of that. I think that Omnisearch logs too much by default. From the plugin guidelines:
|
0 replies
|
Good points. Edit: actually, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
omnisearch implements debug logging by having a plugin setting that toggles the behavior of
logDebug, which wrapsconsole.log.obsidian-omnisearch/src/tools/utils.ts
Lines 233 to 252 in 1c98d8b
Why not just call
console.debuginstead? Then you don't need a separate setting, and you can filter debug level log messages dynamically (they don't get dropped, they're just hidden by default)And by calling
console.debug, the developer console will show the line where the log message was called, instead of the definition oflogDebugAlso, wrapping
console.logto prepend a timestamp is unnecessary because you just need to enable console timestamps in the developer console:All reactions