Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
keys.forEach(function(key) {
let element = obj[key];
if(element.getType) {
// TODO (DCS) call toJSON once that works for concepts
printable[key] = element.getFullyQualifiedType();
}
else {
printable[key] = element;
}
}, this);
logger.info( 'CICERO-ENGINE', JSON.stringify(printable));
}
else {
logger.info( 'CICERO-ENGINE', obj);
}
}
}
if(typeof obj === 'object') {
let printable = {};
const keys = Object.keys(obj);
keys.forEach(function(key) {
let element = obj[key];
if(element.getType) {
// TODO (DCS) call toJSON once that works for concepts
printable[key] = element.getFullyQualifiedType();
}
else {
printable[key] = element;
}
}, this);
logger.info( 'CICERO-ENGINE', JSON.stringify(printable));
}
else {
logger.info( 'CICERO-ENGINE', obj);
}
}
}