Skip to content

Commit

Permalink
log info -> debug
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickswijgman committed Mar 7, 2022
1 parent 8eb1259 commit 7f68dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class ClientImpl extends EventEmitter implements IClient {

return new Promise<void>((resolve, reject) => {
if (this.subscriptions[uri]) {
log.info(`[blf] Already subscribed to ${uri}`, this.constructor.name);
log.debug(`[blf] Already subscribed to ${uri}`, this.constructor.name);
resolve();
return;
}
Expand All @@ -262,12 +262,12 @@ export class ClientImpl extends EventEmitter implements IClient {
this.subscriptions[uri].stateChange.on((newState: SubscriptionState) => {
switch (newState) {
case SubscriptionState.Subscribed:
log.info(`[blf] Already subscribed to ${uri}`, this.constructor.name);
log.debug(`[blf] Already subscribed to ${uri}`, this.constructor.name);
resolve();
break;
case SubscriptionState.Terminated:
delete this.subscriptions[uri];
log.info(`[blf] subscription terminated for ${uri}`, this.constructor.name);
log.debug(`[blf] subscription terminated for ${uri}`, this.constructor.name);
this.emit('subscriptionTerminated', uri);
break;
}
Expand Down

0 comments on commit 7f68dec

Please sign in to comment.