Structured logging (attempt 2) (#1234)
* Revert "Revert "feat(structured logging): implements structured logging for backend (#1217)" (#1227)"
This reverts commit 63e6581162.
* Use pino-http instead of express pino logger
* Use correct reference to knex and do not instantiate HttpLogger prematurely
* Adds missing dependency for pino to webhook-service
* Do not instantiate middleware when passed to express
* Refactor to move logging into shared
* Copy shared packages into dockerfiles
* Build shared workspace in docker build-stage for fileimport & webhook
This commit is contained in:
@@ -55,7 +55,7 @@ services:
|
||||
SESSION_SECRET: 'TODO: change'
|
||||
|
||||
STRATEGY_LOCAL: 'true'
|
||||
DEBUG: 'speckle:*'
|
||||
LOG_LEVEL: 'info'
|
||||
|
||||
POSTGRES_URL: 'postgres'
|
||||
POSTGRES_USER: 'speckle'
|
||||
@@ -91,7 +91,7 @@ services:
|
||||
command: ['bash', '-c', '/wait && node bin/www']
|
||||
|
||||
environment:
|
||||
DEBUG: 'preview-service:*'
|
||||
LOG_LEVEL: 'info'
|
||||
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
||||
WAIT_HOSTS: 'postgres:5432'
|
||||
|
||||
@@ -100,7 +100,7 @@ services:
|
||||
restart: always
|
||||
command: ['bash', '-c', '/wait && node main.js']
|
||||
environment:
|
||||
DEBUG: 'webhook-service:*'
|
||||
LOG_LEVEL: 'info'
|
||||
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
||||
WAIT_HOSTS: 'postgres:5432'
|
||||
|
||||
@@ -109,7 +109,7 @@ services:
|
||||
restart: always
|
||||
command: ['bash', '-c', '/wait && node src/daemon.js']
|
||||
environment:
|
||||
DEBUG: 'fileimport-service:*'
|
||||
LOG_LEVEL: 'info'
|
||||
PG_CONNECTION_STRING: 'postgres://speckle:speckle@postgres/speckle'
|
||||
WAIT_HOSTS: 'postgres:5432'
|
||||
SPECKLE_SERVER_URL: 'http://speckle-server:3000'
|
||||
|
||||
Reference in New Issue
Block a user