diff --git a/src/currencyservice/client.js b/src/currencyservice/client.js index 51e7f23..2000451 100644 --- a/src/currencyservice/client.js +++ b/src/currencyservice/client.js @@ -33,7 +33,8 @@ const logger = pino({ name: 'currencyservice-client', messageKey: 'message', changeLevelName: 'severity', - useLevelLabels: true + useLevelLabels: true, + timestamp: pino.stdTimeFunctions.unixTime }); const request = { diff --git a/src/currencyservice/server.js b/src/currencyservice/server.js index 52ea639..1478b99 100644 --- a/src/currencyservice/server.js +++ b/src/currencyservice/server.js @@ -52,6 +52,7 @@ else { const path = require('path'); const grpc = require('grpc'); const pino = require('pino'); + const protoLoader = require('@grpc/proto-loader'); const MAIN_PROTO_PATH = path.join(__dirname, './proto/demo.proto'); @@ -66,7 +67,8 @@ const logger = pino({ name: 'currencyservice-server', messageKey: 'message', changeLevelName: 'severity', - useLevelLabels: true + useLevelLabels: true, + timestamp: pino.stdTimeFunctions.unixTime }); /** diff --git a/src/paymentservice/charge.js b/src/paymentservice/charge.js index ce9674a..cae44d5 100644 --- a/src/paymentservice/charge.js +++ b/src/paymentservice/charge.js @@ -20,7 +20,8 @@ const logger = pino({ name: 'paymentservice-charge', messageKey: 'message', changeLevelName: 'severity', - useLevelLabels: true + useLevelLabels: true, + timestamp: pino.stdTimeFunctions.unixTime }); diff --git a/src/paymentservice/server.js b/src/paymentservice/server.js index 152a8d1..0f36c15 100644 --- a/src/paymentservice/server.js +++ b/src/paymentservice/server.js @@ -23,7 +23,8 @@ const logger = pino({ name: 'paymentservice-server', messageKey: 'message', changeLevelName: 'severity', - useLevelLabels: true + useLevelLabels: true, + timestamp: pino.stdTimeFunctions.unixTime }); class HipsterShopServer {