@coozzy/error 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -131,7 +131,7 @@ module.exports.grpcErrorHandler = (callback, msg) => (err) => {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
const shouldLogError = (code) => {
|
|
134
|
-
// Do not log not found
|
|
135
|
-
return code !== ErrorCode.NOT_FOUND && code !== ErrorCode.PERMISSION_DENIED &&
|
|
136
|
-
code !== 403 && code !== 404;
|
|
134
|
+
// Do not log "not found", "permission denied" and "invalid argument" errors (gRPC and HTTP)
|
|
135
|
+
return code !== ErrorCode.NOT_FOUND && code !== ErrorCode.PERMISSION_DENIED && ErrorCode.INVALID_ARGUMENT &&
|
|
136
|
+
code !== 400 && code !== 403 && code !== 404;
|
|
137
137
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coozzy/error",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"description": "Simplified error throwing and handling in the coozzy environment",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"author": "Coozzy AG",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@coozzy/logger": "1.3.
|
|
17
|
+
"@coozzy/logger": "1.3.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/express": "4.17.
|
|
20
|
+
"@types/express": "4.17.21"
|
|
21
21
|
}
|
|
22
22
|
}
|