Skip to content
Snippets Groups Projects
Commit 7bc2f157 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: logger cmdSerializer

parent 30a67fe4
No related branches found
No related tags found
No related merge requests found
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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment