Removing sensitive information from logs output

This commit is contained in:
mati108@gmail.com committed 2019-01-30 12:49:26 -03:00
1 parent 33cea192fa
commit 9ebec4b4e4
4 files changed
+9 -10

No files matched your search

@@ -43,7 +43,7 @@ const resolve = async(parent, { clone }, context) => {
active: true
})
logger.debug('addClone -> Checking existing clone %j', existingClone)
logger.debug('addClone -> Checking existing clone.')
if(existingClone.length > 0){
throw new OperationsError('You can only have one active clone by mode. Remove the'
+ ' existing clone of type: ' + clone.mode + ' and try again.')
@@ -66,7 +66,7 @@ const resolve = async(parent, { clone }, context) => {
return new Promise((resolve, reject) => {
newClone.save((err) => {
if (err){
logger.debug('addClone -> Error: %j', err)
logger.error('addClone -> Error: %s', err.stack)
reject('There has been an error storing the clone.')
}
else {