Skip to content

Commit

Permalink
minor logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Feb 2, 2022
1 parent 12b8342 commit 7d8773a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/connectors/connectorRIS.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ export default class ConnectorRIS extends Connector {
}))
.then(() => {
this._checkCanary();
this.logger.log({
level: 'info',
message: "Subscribed to beacons"
});
})
.catch(() => {
this.logger.log({
Expand All @@ -293,7 +297,7 @@ export default class ConnectorRIS extends Connector {
clearTimeout(this._timerCheckCanary);
if (!this.connected) {
this.logger.log({
level: 'error',
level: 'info',
message: "RIS connected again, the streaming session is working properly"
});
}
Expand Down Expand Up @@ -351,6 +355,10 @@ export default class ConnectorRIS extends Connector {
? Promise.all([this._subscribeToPrefixes(input), this._subscribeToASns(input)])
: this._subscribeToAll(input))
.then(() => {
this.logger.log({
level: 'info',
message: "Subscribed to monitored resources"
});
if (this._shouldCanaryMonitoringStart()) {
this._startCanary();
}
Expand Down

0 comments on commit 7d8773a

Please sign in to comment.