Skip to content

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

Merged
egalvis27 merged 2 commits into
feat/go-fuse-daemonfrom
feat/fix-antivirus-logs-redirection
Jun 1, 2026
Merged

fix: enhance antivirus log routing to support structured log entries …#349
egalvis27 merged 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

@egalvis27 egalvis27 merged commit 02250fb into feat/go-fuse-daemon Jun 1, 2026
10 of 11 checks passed
@egalvis27 egalvis27 deleted the feat/fix-antivirus-logs-redirection branch June 1, 2026 14:48
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