* A few more client child logs
This commit is contained in:
parent
9715d31ac2
commit
60cae7de3d
|
@ -90,6 +90,9 @@ function displayBanner(term) {
|
||||||
function connectEntry(client) {
|
function connectEntry(client) {
|
||||||
var term = client.term;
|
var term = client.term;
|
||||||
|
|
||||||
|
// :TODO: Enthral for example queries cursor position & checks if it worked. This might be good
|
||||||
|
// :TODO: How to detect e.g. if show/hide cursor can work? Probably can if CPR is avail
|
||||||
|
|
||||||
//
|
//
|
||||||
// If we don't yet know the client term width/height,
|
// If we don't yet know the client term width/height,
|
||||||
// try with a nonstandard ANSI DSR type request.
|
// try with a nonstandard ANSI DSR type request.
|
||||||
|
|
|
@ -178,7 +178,7 @@ MenuModule.prototype.standardMCIReadyHandler = function(mciData) {
|
||||||
var viewsReady = function(err) {
|
var viewsReady = function(err) {
|
||||||
// :TODO: what should really happen here?
|
// :TODO: what should really happen here?
|
||||||
if(err) {
|
if(err) {
|
||||||
Log.warn(err);
|
self.client.log.warn(err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// ENiGMA½
|
// ENiGMA½
|
||||||
var MCIViewFactory = require('./mci_view_factory.js').MCIViewFactory;
|
var MCIViewFactory = require('./mci_view_factory.js').MCIViewFactory;
|
||||||
var menuUtil = require('./menu_util.js');
|
var menuUtil = require('./menu_util.js');
|
||||||
var Log = require('./logger.js').log;
|
//var Log = require('./logger.js').log;
|
||||||
var Config = require('./config.js').config;
|
var Config = require('./config.js').config;
|
||||||
var asset = require('./asset.js');
|
var asset = require('./asset.js');
|
||||||
var ansi = require('./ansi_term.js');
|
var ansi = require('./ansi_term.js');
|
||||||
|
@ -159,7 +159,7 @@ function ViewController(options) {
|
||||||
var view = self.getView(viewId);
|
var view = self.getView(viewId);
|
||||||
|
|
||||||
if(!view) {
|
if(!view) {
|
||||||
Log.warn( { viewId : viewId }, 'Cannot find view');
|
self.client.log.warn( { viewId : viewId }, 'Cannot find view');
|
||||||
nextItem(null);
|
nextItem(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -356,7 +356,7 @@ ViewController.prototype.loadFromPromptConfig = function(options, cb) {
|
||||||
function prepareFormSubmission(callback) {
|
function prepareFormSubmission(callback) {
|
||||||
|
|
||||||
self.on('submit', function promptSubmit(formData) {
|
self.on('submit', function promptSubmit(formData) {
|
||||||
Log.trace( { formData : self.getLogFriendlyFormData(formData) }, 'Prompt submit');
|
self.client.log.trace( { formData : self.getLogFriendlyFormData(formData) }, 'Prompt submit');
|
||||||
|
|
||||||
menuUtil.handleAction(self.client, formData, self.client.currentMenuModule.menuConfig);
|
menuUtil.handleAction(self.client, formData, self.client.currentMenuModule.menuConfig);
|
||||||
});
|
});
|
||||||
|
@ -421,7 +421,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.trace( { formValue : formValue, actionValue : actionValue }, 'Action match');
|
self.client.log.trace( { formValue : formValue, actionValue : actionValue }, 'Action match');
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
||||||
|
|
||||||
if(err) {
|
if(err) {
|
||||||
// non-fatal
|
// non-fatal
|
||||||
Log.trace(
|
self.client.log.trace(
|
||||||
{ error : err, mci : Object.keys(options.mciMap), formId : formIdKey },
|
{ error : err, mci : Object.keys(options.mciMap), formId : formIdKey },
|
||||||
'Unable to find matching form configuration');
|
'Unable to find matching form configuration');
|
||||||
}
|
}
|
||||||
|
@ -476,7 +476,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
||||||
|
|
||||||
self.on('submit', function formSubmit(formData) {
|
self.on('submit', function formSubmit(formData) {
|
||||||
|
|
||||||
Log.trace( { formData : self.getLogFriendlyFormData(formData) }, 'Form submit');
|
self.client.log.trace( { formData : self.getLogFriendlyFormData(formData) }, 'Form submit');
|
||||||
|
|
||||||
//
|
//
|
||||||
// Locate configuration for this form ID
|
// Locate configuration for this form ID
|
||||||
|
@ -488,7 +488,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
||||||
confForFormId = formConfig.submit['*'];
|
confForFormId = formConfig.submit['*'];
|
||||||
} else {
|
} else {
|
||||||
// no configuration for this submitId
|
// no configuration for this submitId
|
||||||
Log.debug( { formId : formData.submitId }, 'No configuration for form ID');
|
delf.client.log.debug( { formId : formData.submitId }, 'No configuration for form ID');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -576,7 +576,7 @@ ViewController.prototype.getFormData = function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
Log.error(e); // :TODO: Log better ;)
|
self.client.log.error(e); // :TODO: Log better ;)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue