Skip to content

Commit

Permalink
feat: add separate log for player debug
Browse files Browse the repository at this point in the history
  • Loading branch information
N0chteil committed Oct 22, 2023
1 parent db30b3f commit 99b0117
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/managers/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class Bridge {
elapsedTime: 0,
remainingTime: 0
};
private playerLog: log.ElectronLog = log.create("player");

public bridge: AppleBridge = new AppleBridge();
public lastTrack: any = {};
Expand All @@ -47,6 +48,8 @@ export class Bridge {

log.info("[Bridge]", "Initializing Bridge");

this.playerLog.transports.file.fileName = `bridge-player.log`;

if (config.get("service") === "music") {
log.info("[Bridge]", "Using WatchDog");

Expand Down Expand Up @@ -188,12 +191,12 @@ export class Bridge {
return log.warn("[Bridge]", "No Track detected");

// TODO: remove in stable release, keep for beta
log.debug(
this.playerLog.debug(
"[BetaDebugLog][Bridge][onPlay]",
"typeof this.discord",
typeof this.discord
);
log.debug(
this.playerLog.debug(
"[BetaDebugLog][Bridge][onPlay]",
"currentTrack",
currentTrack
Expand Down

0 comments on commit 99b0117

Please sign in to comment.