Skip to content

Fix: DebugLogger infinite recursion crash#5

Open
mojek wants to merge 1 commit intocasals:masterfrom
mojek:fix/debug-logger-recursion
Open

Fix: DebugLogger infinite recursion crash#5
mojek wants to merge 1 commit intocasals:masterfrom
mojek:fix/debug-logger-recursion

Conversation

@mojek
Copy link
Copy Markdown

@mojek mojek commented Mar 14, 2026

Summary

  • DebugLogger methods (log, warn, error, group, table, time, timeEnd) were calling debugLog.* (the singleton instance) instead of console.*
  • This caused infinite recursion and Maximum call stack size exceeded crash whenever debugMode was enabled in settings
  • Replaced all self-referencing calls with proper console.* calls

Test plan

  • Enable debugMode: true in plugin settings
  • Reload Obsidian — plugin should load without crash
  • Console should show [Linear Plugin] prefixed debug messages

All methods in DebugLogger (log, warn, error, group, table, time, etc.)
were calling debugLog.* (the singleton instance) instead of console.*,
causing infinite recursion and "Maximum call stack size exceeded" crash
when debugMode is enabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant