mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
refactor: logger cmdSerializer
This commit is contained in:
parent
30a67fe43c
commit
7bc2f157ee
2 changed files with 7 additions and 5 deletions
6
lib/logger/cmd-serializer.js
Normal file
6
lib/logger/cmd-serializer.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = cmdSerializer;
|
||||
|
||||
// istanbul ignore next
|
||||
function cmdSerializer(cmd) {
|
||||
return cmd.replace(/https:\/\/[^@]*@/g, 'https://**redacted**@');
|
||||
}
|
|
@ -3,15 +3,11 @@ const bunyan = require('bunyan');
|
|||
const PrettyStdout = require('./pretty-stdout').RenovateStream;
|
||||
const configSerializer = require('./config-serializer');
|
||||
const errSerializer = require('./err-serializer');
|
||||
const cmdSerializer = require('./cmd-serializer');
|
||||
|
||||
let bunyanLogger;
|
||||
let meta = {};
|
||||
|
||||
// istanbul ignore next
|
||||
function cmdSerializer(cmd) {
|
||||
return cmd.replace(/https:\/\/[^@]*@/g, 'https://**redacted**@');
|
||||
}
|
||||
|
||||
function initLogger() {
|
||||
const stdout = {
|
||||
name: 'stdout',
|
||||
|
|
Loading…
Reference in a new issue