mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
Logging migration to Pino library (#1630)
* feat: add new logger based on Pino library * feat: changes on api/init.ts to use Pino logging library * feat: changes on helpers.ts to use Pino logging library * feat: changes on event-stream/event-server.ts to use Pino logging library * feat: changes on API tests to use Pino logging library * feat: changes on API codebase to use Pino logging library * fix: lint * feat: changes on logger * feat: remove logError function * feat: change logger.verbose to logger.debug * fix: lint * fix: first argument on logger should be an object * feat: add logging information to ErrorRequestHandler * fix: remove logger from ErrorRequestHandler * fix: remove try-catch statement Errors shoud be handled by the ErrorRequestHandler middleware * feat: disable automatic 'request completed' logging
This commit is contained in:
@@ -165,7 +165,6 @@
|
||||
"evt": "1.10.1",
|
||||
"express": "4.17.3",
|
||||
"express-list-endpoints": "5.0.0",
|
||||
"express-winston": "4.2.0",
|
||||
"getopts": "2.3.0",
|
||||
"http-proxy-middleware": "2.0.1",
|
||||
"jsonc-parser": "3.0.0",
|
||||
@@ -179,6 +178,9 @@
|
||||
"pg": "8.7.1",
|
||||
"pg-copy-streams": "5.1.1",
|
||||
"pg-cursor": "2.7.1",
|
||||
"pino": "8.11.0",
|
||||
"pino-http": "8.3.3",
|
||||
"pino-pretty": "10.0.0",
|
||||
"postgres": "3.3.1",
|
||||
"prom-client": "14.0.1",
|
||||
"rpc-bitcoin": "2.0.0",
|
||||
@@ -191,7 +193,6 @@
|
||||
"ts-unused-exports": "7.0.3",
|
||||
"typescript": "4.6.2",
|
||||
"uuid": "8.3.2",
|
||||
"winston": "3.6.0",
|
||||
"ws": "7.5.9",
|
||||
"zone-file": "2.0.0-beta.3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user