Logging Improved

This commit is contained in:
Luis Fernando Molina committed 2018-09-16 11:56:18 +02:00
1 parent 2c9e62f1b6
commit adca0b8d9e
2 files changed
+20 -6

No files matched your search

+4
View File
@@ -146,6 +146,8 @@ exports.newRoot = function newRoot() {
function onInizialized(err) {
console.log(logDisplace + "Root : [INFO] initialize -> onInizialized -> Entering function. ");
if (err.result === global.DEFAULT_OK_RESPONSE.result) {
let filePath;
@@ -170,6 +172,8 @@ exports.newRoot = function newRoot() {
function onFileReceived(err, text) {
console.log(logDisplace + "Root : [INFO] initialize -> onInizialized -> onFileReceived -> Entering function. ");
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
console.log(logDisplace + "Root : [INFO] initialize -> onInizialized -> onFileReceived -> err = " + err.message);
return;