debug: Add detailed sidecar startup logging
Add more console.log statements to help debug sidecar startup issues: - Log when startSidecar() is called - Log sidecar directory and packaged status - Log executable path check results 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -288,9 +288,12 @@ function createWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startSidecar() {
|
function startSidecar() {
|
||||||
|
console.log("=== startSidecar() called ===");
|
||||||
const sidecarDir = app.isPackaged
|
const sidecarDir = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "sidecar")
|
? path.join(process.resourcesPath, "sidecar")
|
||||||
: path.join(__dirname, "..", "..", "sidecar");
|
: path.join(__dirname, "..", "..", "sidecar");
|
||||||
|
console.log("Sidecar directory:", sidecarDir);
|
||||||
|
console.log("App is packaged:", app.isPackaged);
|
||||||
|
|
||||||
// Determine the sidecar executable path based on packaging and platform
|
// Determine the sidecar executable path based on packaging and platform
|
||||||
let sidecarExecutable;
|
let sidecarExecutable;
|
||||||
@@ -327,11 +330,13 @@ function startSidecar() {
|
|||||||
sidecarArgs = [sidecarScript];
|
sidecarArgs = [sidecarScript];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Checking sidecar executable at:", sidecarExecutable);
|
||||||
if (!fs.existsSync(sidecarExecutable)) {
|
if (!fs.existsSync(sidecarExecutable)) {
|
||||||
console.log("Sidecar executable not found at:", sidecarExecutable);
|
console.log("ERROR: Sidecar executable not found at:", sidecarExecutable);
|
||||||
console.log("Transcription will not be available.");
|
console.log("Transcription will not be available.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log("Sidecar executable found:", sidecarExecutable);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Get Whisper configuration from config.json or environment variables
|
// Get Whisper configuration from config.json or environment variables
|
||||||
|
|||||||
Reference in New Issue
Block a user