Skip to content

fix(logger): recognize callers on Windows - #4337

Merged
KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
xunguangzlj-cloud:fix/logger-windows-callers
Nov 8, 2026
Merged

KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
xunguangzlj-cloud:fix/logger-windows-callers

Conversation

@xunguangzlj-cloud

Copy link
Copy Markdown

Summary

Normalize path separators before filtering and reading stack frames. On Windows, the logger was treating its own frame as the caller and printing the logger path instead of the script or module name.

Verification

  • On Windows, develop fails all three caller-prefix cases for .js, .mjs, and .cjs. The updated tests pass for both file URLs and drive-letter paths with backslashes.
  • Ran node --run lint:fix and checked the diff.
  • The full Windows unit run in UTC improved from 532 passing and 4 failing tests to 535 passing and 1 failing test. The remaining system-information test expects Linux on both revisions.

AI assistance was used to implement and verify this change.

@KristjanESPERANTO KristjanESPERANTO left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! 🙂

I don't have a windows system now to test it, but looks good to me.

@KristjanESPERANTO
KristjanESPERANTO merged commit c98cd40 into MagicMirrorOrg:develop Nov 8, 2026
13 checks passed
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.

2 participants