96bed71022
* Improves error logging
- use pino error logger correctly by passing in error as first argument
* monitor deployment: Filter logging at INFO level and above
* Use structured logging to create parameters for monitoring results
* Add structured logging to obj fileimport service
* Fileimport service, fix and improve logging
- use child logger with additional context where possible
- select appropriate logging level
- fix duplicated context in log statement
* REST endpoints, add context to structured logging and remove same context from message
* Webhook service provides context to bound logger to properly use structured logging
- Pass bound logger containing context to `makeNetworkRequest`
- do not log url, as it may contain a secret (like Discord's webhook urls), instead log the webhook Id
- log error message when network call fails
* upload: make better use of structured logging when recording data
* pino-pretty when in dev or test mode
- pino-pretty configured to send to stderr
* LOG_PRETTY env var
* Silence structured logging during testing
- can not rely on determining the port number by reading from stdout/stderr
- instead we determine which port is free, then create our server on that port
- we then poll that port until the server is ready before commencing tests
* Allow puppeteer to install chromium
* Do not need to install chromium separately
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "@speckle/webhook-service",
|
|
"private": true,
|
|
"version": "2.5.4",
|
|
"description": "Component to handle calling external webhooks",
|
|
"main": "index.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/specklesystems/speckle-server.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/specklesystems/speckle-server/issues"
|
|
},
|
|
"homepage": "https://github.com/specklesystems/speckle-server#readme",
|
|
"engines": {
|
|
"node": "^18.12.1"
|
|
},
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"dev": "cross-env LOG_PRETTY=true ALLOW_LOCAL_NETWORK=true node src/main.js",
|
|
"lint": "eslint . --ext .js,.ts"
|
|
},
|
|
"dependencies": {
|
|
"@speckle/shared": "workspace:^",
|
|
"knex": "^2.0.0",
|
|
"node-fetch": "^2.6.1",
|
|
"pg": "^8.7.3",
|
|
"pino-pretty": "^9.1.1",
|
|
"private-ip": "^2.3.3",
|
|
"prom-client": "^14.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.11.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"prettier": "^2.5.1"
|
|
}
|
|
}
|