@coozzy/error 1.5.7 → 1.5.8

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -2
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 and permission denied errors (gRPC and HTTP)
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.7",
3
+ "version": "1.5.8",
4
4
  "description": "Simplified error throwing and handling in the coozzy environment",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -17,6 +17,6 @@
17
17
  "@coozzy/logger": "1.3.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/express": "4.17.15"
20
+ "@types/express": "4.17.17"
21
21
  }
22
22
  }