Skip to content

Commit

Permalink
chore: logging updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thaaddeus committed Dec 5, 2021
1 parent e693f6c commit c58fc89
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/rpc_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,13 +590,9 @@ class AccountsChangeNotifications {
// and for some reason next received notification is for already published slot or older
// restart sub as it's this is situation that should never happen
if (slot < this._currentSlot!) {
logger.log(
'debug',
`Stale notification, current slot ${this._currentSlot}, update slot: ${slot}, ignoring...`,
{
market: this._options.marketName
}
)
logger.log('warn', `Stale notification, current slot ${this._currentSlot}, update slot: ${slot}, ignoring...`, {
market: this._options.marketName
})
} else if (slot > this._currentSlot!) {
// otherwise move to pristine state
this._state = 'PRISTINE'
Expand Down

0 comments on commit c58fc89

Please sign in to comment.