Skip to content

Commit

Permalink
Adding stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Aug 27, 2024
1 parent 3d51100 commit ca4ed7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cameraAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class CameraAccessory {
}

// Publish as external accessory
this.log.debug("Publishing accessory", this.accessory);
this.log.debug("Publishing accessory...");
this.api.publishExternalAccessories(PLUGIN_ID, [this.accessory]);

setImmediate(() => {
Expand Down
3 changes: 3 additions & 0 deletions src/cameraPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class CameraPlatform implements IndependentPlatformPlugin {
await cameraAccessory.setup();
} catch (err) {
this.log.error("Error during setup of camera", cameraConfig, err);
if (err instanceof Error) {
this.log.error("Stack trace:", err.stack);
}
}
});
}
Expand Down

0 comments on commit ca4ed7b

Please sign in to comment.