Skip to content

Commit

Permalink
spread broadcast logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensJourney committed Mar 4, 2024
1 parent b04c75d commit 51e58b9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/powersync-sdk-web/src/worker/sync/BroadcastLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,33 @@ export class BroadcastLogger implements ILogger {
}

trace(...x: any[]): void {
console.trace(x);
this.clients.forEach((p) => p.clientProvider.trace(x));
console.trace(...x);
this.clients.forEach((p) => p.clientProvider.trace(...x));
}

debug(...x: any[]): void {
console.debug(x);
this.clients.forEach((p) => p.clientProvider.debug(x));
console.debug(...x);
this.clients.forEach((p) => p.clientProvider.debug(...x));
}

info(...x: any[]): void {
console.info(x);
this.clients.forEach((p) => p.clientProvider.info(x));
console.info(...x);
this.clients.forEach((p) => p.clientProvider.info(...x));
}

log(...x: any[]): void {
console.log(x);
this.clients.forEach((p) => p.clientProvider.log(x));
console.log(...x);
this.clients.forEach((p) => p.clientProvider.log(...x));
}

warn(...x: any[]): void {
console.warn(x);
this.clients.forEach((p) => p.clientProvider.warn(x));
console.warn(...x);
this.clients.forEach((p) => p.clientProvider.warn(...x));
}

error(...x: any[]): void {
console.error(x);
this.clients.forEach((p) => p.clientProvider.error(x));
console.error(...x);
this.clients.forEach((p) => p.clientProvider.error(...x));
}

time(label: string): void {
Expand Down

0 comments on commit 51e58b9

Please sign in to comment.