@athenna/http 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "The Athenna Http server. Built on top of fastify",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -17,7 +17,7 @@ export declare class HttpExceptionHandler {
17
17
  *
18
18
  * @protected
19
19
  */
20
- protected ignoreStatuses: string[];
20
+ protected ignoreStatuses: number[];
21
21
  /**
22
22
  * The global exception handler of all HTTP requests.
23
23
  *
@@ -60,10 +60,10 @@ class HttpExceptionHandler {
60
60
  },
61
61
  };
62
62
  if (this.addStack) {
63
- logger_1.Log.error(`[${body.statusCode}] ${body.code}::${body.message}\nStack: ${body.stack}`, logConfig);
63
+ logger_1.Log.error(`(${body.statusCode}) ${body.code}: ${body.message}\nStack: ${body.stack}`, logConfig);
64
64
  }
65
65
  else {
66
- logger_1.Log.error(`[${body.statusCode}] ${body.code}::${body.message}`, logConfig);
66
+ logger_1.Log.error(`(${body.statusCode}) ${body.code}: ${body.message}`, logConfig);
67
67
  }
68
68
  return response.status(statusCode).send(body);
69
69
  }