Made nice logging, instead of console.log
This commit is contained in:
parent
2aa1fea0c8
commit
869adea706
|
@ -9,6 +9,6 @@ COPY ./bncWatcher/package.json /watcher/
|
|||
|
||||
RUN npm install
|
||||
|
||||
COPY ./bncWatcher/bncWatcher.js ./shared/db.js /watcher/
|
||||
COPY ./bncWatcher/bncWatcher.js ./shared/db.js ./shared/logger.js /watcher/
|
||||
|
||||
ENTRYPOINT ["node", "bncWatcher.js"]
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
"axios": "0.19.0",
|
||||
"bech32": "1.1.3",
|
||||
"bignumber.js": "9.0.0",
|
||||
"ethers": "4.0.33"
|
||||
"ethers": "4.0.33",
|
||||
"pino": "5.13.4",
|
||||
"pino-pretty": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@ COPY ./ethWatcher/package.json /watcher/
|
|||
|
||||
RUN npm install
|
||||
|
||||
COPY ./ethWatcher/ethWatcher.js ./shared/db.js /watcher/
|
||||
COPY ./ethWatcher/ethWatcher.js ./shared/db.js ./shared/logger.js /watcher/
|
||||
|
||||
ENTRYPOINT ["node", "ethWatcher.js"]
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
"web3": "1.0.0-beta.55",
|
||||
"ethers": "4.0.33",
|
||||
"bignumber.js": "9.0.0",
|
||||
"bech32": "1.1.3"
|
||||
"bech32": "1.1.3",
|
||||
"pino": "5.13.4",
|
||||
"pino-pretty": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@ COPY ./proxy/package.json /proxy/
|
|||
|
||||
RUN npm install
|
||||
|
||||
COPY ./proxy/index.js ./proxy/encode.js ./proxy/decode.js /proxy/
|
||||
COPY ./proxy/index.js ./proxy/encode.js ./proxy/decode.js ./shared/logger.js /proxy/
|
||||
|
||||
ENTRYPOINT ["node", "index.js"]
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
"axios": "0.19.0",
|
||||
"bignumber.js": "9.0.0",
|
||||
"bn.js": "5.0.0",
|
||||
"ethers": "4.0.37"
|
||||
"ethers": "4.0.37",
|
||||
"pino": "5.13.4",
|
||||
"pino-pretty": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
const pino = require('pino')
|
||||
|
||||
const logger = pino({
|
||||
name: 'logger',
|
||||
prettyPrint: {
|
||||
colorize: true,
|
||||
ignore: 'time,pid,name,hostname'
|
||||
},
|
||||
level: process.env.LOG_LEVEL || 'debug',
|
||||
base: {}
|
||||
})
|
||||
|
||||
module.exports = logger
|
|
@ -9,7 +9,7 @@ COPY ./tss-keygen/package.json /tss/
|
|||
|
||||
RUN npm install
|
||||
|
||||
COPY ./tss-keygen/keygen-entrypoint.sh ./tss-keygen/keygen.js /tss/
|
||||
COPY ./tss-keygen/keygen-entrypoint.sh ./tss-keygen/keygen.js ./shared/logger.js /tss/
|
||||
|
||||
COPY --from=tss /tss/target/release/gg18_keygen_client /tss/
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"amqplib": "0.5.3",
|
||||
"bech32": "1.1.3"
|
||||
"bech32": "1.1.3",
|
||||
"pino": "5.13.4",
|
||||
"pino-pretty": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ COPY ./tss-sign/package.json /tss/
|
|||
|
||||
RUN npm install --no-optional
|
||||
|
||||
COPY ./tss-sign/sign-entrypoint.sh ./tss-sign/signer.js ./tss-sign/tx.js /tss/
|
||||
COPY ./tss-sign/sign-entrypoint.sh ./tss-sign/signer.js ./tss-sign/tx.js ./shared/logger.js /tss/
|
||||
|
||||
COPY --from=tss /tss/target/release/gg18_sign_client /tss/
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
"amqplib": "0.5.3",
|
||||
"axios": "0.19.0",
|
||||
"bignumber.js": "9.0.0",
|
||||
"express": "4.17.1"
|
||||
"express": "4.17.1",
|
||||
"pino": "5.13.4",
|
||||
"pino-pretty": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue