Skip to content

Commit

Permalink
test: should be "warn"
Browse files Browse the repository at this point in the history
  • Loading branch information
pmb0 committed Oct 19, 2021
1 parent 30dea7e commit a858747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/unleash-strategies/strategy/remote-address.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ describe('RemoteAdressStrategy', () => {
).toBeFalsy()

// @ts-ignore
expect(strategy.logger.error).toHaveBeenCalledWith(
'ohoh',
expect.any(String),
)
expect(strategy.logger.warn).toHaveBeenCalledWith('ohoh')
})
})
})
2 changes: 1 addition & 1 deletion src/unleash-strategies/strategy/remote-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class RemoteAddressStrategy
} catch (_error) {
const error: Error =
_error instanceof Error ? _error : new Error(JSON.stringify(_error))
this.logger.error(error.message, error.stack)
this.logger.warn(error.message)
}
}

Expand Down

0 comments on commit a858747

Please sign in to comment.