Skip to content

fix: enhance antivirus log routing to support structured log entries …#349

Open
egalvis27 wants to merge 2 commits into
feat/go-fuse-daemonfrom
feat/fix-antivirus-logs-redirection
Open

fix: enhance antivirus log routing to support structured log entries …#349
egalvis27 wants to merge 2 commits into
feat/go-fuse-daemonfrom
feat/fix-antivirus-logs-redirection

Conversation

@egalvis27
Copy link
Copy Markdown

What is Changed / Added

This PR fixes antivirus log routing in packaged builds.

Root cause: the previous approach used createRequire(__filename), which could load a different electron-log instance than the one used by @internxt/drive-desktop-core inside the webpack bundle. As a result, overriding resolvePathFn did not affect the active logger.

Solution: replaced that dynamic loading with a static require of the core package’s electron-log module, then applied the resolvePathFn/resolvePath override on that shared instance.

Routing behavior:

  • error/info -> drive-important.log
  • antivirus-related messages -> drive-antivirus.log
  • all other logs -> drive.log

@sonarqubecloud
Copy link
Copy Markdown

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