Skip to content

feat: write logs to debug phone-island messages#103

Merged
edospadoni merged 1 commit into
mainfrom
debug-unhold
Apr 21, 2026
Merged

feat: write logs to debug phone-island messages#103
edospadoni merged 1 commit into
mainfrom
debug-unhold

Conversation

@edospadoni
Copy link
Copy Markdown
Member

@edospadoni edospadoni commented Mar 10, 2026

Summary

Forward all console messages from the PhoneIsland renderer window to the main process log file, so that audio/SIP diagnostics are captured in production without requiring DevTools access.

Changes

  • src/main/classes/windows/PhoneIslandWindow.ts:

    • Set backgroundThrottling: false to prevent Chromium from throttling timers/AudioContext when the window is hidden (critical for audio reliability during long holds).
    • Override console.log/info/warn/error/debug in the renderer to JSON-serialize object arguments, otherwise Chromium's console-message event emits [object Object].
    • Listen to console-message and forward each message to the main process via a dedicated phone-island-log IPC channel.
  • src/main/lib/windowConstructor.ts:

    • Spread config.webPreferences inside the shared webPreferences block so that per-window options (like backgroundThrottling) are not silently dropped by the default values.
  • src/main/main.ts:

    • Register an ipcMain.on('phone-island-log', ...) handler that always writes to the log file, independent of isDev(), so production installs also record the diagnostics.

@github-actions
Copy link
Copy Markdown

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/22897208661.
Commit: 8cf9775

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@edospadoni edospadoni closed this Mar 17, 2026
@edospadoni edospadoni reopened this Mar 17, 2026
@github-actions
Copy link
Copy Markdown

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/23196854506.
Commit: 9e9f8b3

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@edospadoni edospadoni force-pushed the main branch 4 times, most recently from 1581433 to 56014e0 Compare March 25, 2026 10:13
@edospadoni edospadoni changed the title fix(unhold): write logs to debug unhold mute audio feat: write logs to debug phone-island messages Apr 21, 2026
@github-actions
Copy link
Copy Markdown

Automatic builds from https://github.com/NethServer/nethlink/actions/runs/24710032526.
Commit: 6d3fc0d

Name Platform Link
win-app.exe Windows (x64) Link
macos-app-x64.dmg MacOS (x64) Link
macos-app-arm64.dmg MacOS (arm64) Link
linux-app.AppImage Linux (x64) Link

@edospadoni edospadoni merged commit bfe983f into main Apr 21, 2026
4 checks passed
@edospadoni edospadoni deleted the debug-unhold branch April 21, 2026 07:39
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