1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-13 23:20:05 +00:00

chore(*): refactor to use logger if available

This commit is contained in:
Krishna Acondy
2021-06-25 09:14:29 +01:00
parent 97d45e87ec
commit 2b16be3aef
4 changed files with 20 additions and 9 deletions

View File

@@ -287,7 +287,8 @@ export class RequestClient implements HttpClient {
})
.then((res) => res.data)
.catch((error) => {
console.log(error)
const logger = process.logger || console
logger.error(error)
})
}