1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 21:10:05 +00:00

chore: use process.logger instead of condole.log

This commit is contained in:
2022-11-17 23:03:33 +05:00
parent 6b666d5554
commit b27d684145
16 changed files with 41 additions and 36 deletions

View File

@@ -107,7 +107,7 @@ export class MockSas9Controller {
content: result.result as string
}
} catch (err) {
console.log('err', err)
process.logger.error('err', err)
}
return {
@@ -168,7 +168,7 @@ export class MockSas9Controller {
content: result.result as string
}
} catch (err) {
console.log('err', err)
process.logger.error('err', err)
}
return {
@@ -269,7 +269,7 @@ const getMockResponseFromFile = async (
let file = await readFile(filePathParsed).catch((err: any) => {
const errMsg = `Error reading mocked file on path: ${filePathParsed}\nError: ${err}`
console.error(errMsg)
process.logger.error(errMsg)
error = true