diff --git a/services/rds/package.json b/services/rds/package.json index 3d1e3930e..b778a29d6 100644 --- a/services/rds/package.json +++ b/services/rds/package.json @@ -1,7 +1,7 @@ { "name": "rds", "description": "Raw Data Storage", - "version": "1.0.1", + "version": "1.0.1-dev", "main": "index.js", "author": "Basaas GmbH", "license": "Apache-2.0", @@ -31,7 +31,6 @@ "@openintegrationhub/event-bus": "*", "@openintegrationhub/iam-utils": "*", "bunyan": "1.8.14", - "bunyan-format": "0.2.1", "cors": "2.8.5", "express": "4.17.1", "mongoose": "5.11.8", diff --git a/services/rds/src/logger.js b/services/rds/src/logger.js index 357083426..30235d250 100644 --- a/services/rds/src/logger.js +++ b/services/rds/src/logger.js @@ -1,14 +1,9 @@ const bunyan = require('bunyan') -const bformat = require('bunyan-format') const pkg = require('../package.json') -const formatOut = bformat({ - outputMode: 'long', -}) - const log = bunyan.createLogger({ name: pkg.name, - stream: formatOut, + serializers: bunyan.stdSerializers, level: process.env.LOG_LEVEL, src: true, // disable in production }) diff --git a/services/rds/src/server.js b/services/rds/src/server.js index e4c4934ad..92fc31849 100644 --- a/services/rds/src/server.js +++ b/services/rds/src/server.js @@ -62,7 +62,7 @@ class Server { // wait for index creation require('./model/raw-record').on('index', (error) => { if (error) { - console.error('RawRecord index error: %s', err) + logger.error('RawRecord index error', error) } else { resolve() } diff --git a/yarn.lock b/yarn.lock index bcec8140b..88bea9e9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5095,7 +5095,7 @@ builtin-status-codes@^3.0.0: resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= -bunyan-format@0.2.1, bunyan-format@^0.2.1: +bunyan-format@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/bunyan-format/-/bunyan-format-0.2.1.tgz#a4b3b0d80070a865279417269e3f00ff02fbcb47" integrity sha1-pLOw2ABwqGUnlBcmnj8A/wL7y0c=