diff --git a/package.json b/package.json index a9024f0..537453c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lint:js": "eslint --cache .", "lint:types": "tsc --build tsconfig.json", "postversion": "git add package.json package-lock.json && git commit -m $npm_package_version", - "test": "jest --coverage --verbose", + "test": "jest --coverage --verbose --runInBand", "test:watch": "jest --watch", "server:watch": "nodemon --exec tsx --enable-source-maps ./src", "server:debug": "nodemon --exec tsx --enable-source-maps --inspect ./src", diff --git a/src/api/common/helpers/fail-action.js b/src/api/common/helpers/fail-action.js index 704e4af..9df8fcf 100644 --- a/src/api/common/helpers/fail-action.js +++ b/src/api/common/helpers/fail-action.js @@ -10,6 +10,6 @@ const logger = createLogger() * @returns { never } */ export function failAction(_request, _h, error) { - logger.error(error, error?.message) + logger.warn(error, error?.message) throw error }