fastify-txstate 3.0.10 → 3.0.12

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/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -17,7 +17,7 @@ exports.devLogger = {
17
17
  warn: console.warn,
18
18
  trace: console.trace,
19
19
  silent: (msg) => { },
20
- child(bindings, options) { return exports.devLogger; }
20
+ child(bindings, options) { return this; }
21
21
  };
22
22
  exports.prodLogger = {
23
23
  level: 'info',
@@ -151,7 +151,7 @@ class Server {
151
151
  }
152
152
  }
153
153
  });
154
- this.app.get('/health', { logLevel: 'trace' }, async (req, res) => {
154
+ this.app.get('/health', { logLevel: 'warn' }, async (req, res) => {
155
155
  if (this.shuttingDown) {
156
156
  res.log.info('Returning 503 on /health because we are shutting down/restarting.');
157
157
  await res.status(503).send('Service is shutting down/restarting.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-txstate",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "A small wrapper for fastify providing a set of common conventions & utility functions we use.",
5
5
  "exports": {
6
6
  "types": "./lib-esm/index.d.ts",