* Remove/fix up some console.log()'s
This commit is contained in:
parent
1b68264dc2
commit
0489f5b2dd
|
@ -26,7 +26,7 @@ function ConfigCache() {
|
|||
self.cache[filePath] = hjson.parse(data);
|
||||
cb(null, self.cache[filePath]);
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
Log.error( { filePath : filePath, error : e.toString() }, 'Failed recaching');
|
||||
cb(e);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -231,7 +231,10 @@ MenuModule.prototype.nextMenu = function(cb) {
|
|||
// ...if the error is that we do not meet ACS requirements and did not get a match, then what?
|
||||
if(!cb) {
|
||||
cb = function(err) {
|
||||
console.log(err)
|
||||
if(err) {
|
||||
// :TODO: Don't console.log() here!
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.client.menuStack.next(cb);
|
||||
|
|
|
@ -94,7 +94,6 @@ function changeMessageArea(client, areaName, cb) {
|
|||
],
|
||||
function complete(err, area) {
|
||||
if(!err) {
|
||||
console.log(JSON.stringify(area))
|
||||
client.log.info( area, 'Current message area changed');
|
||||
} else {
|
||||
client.log.warn( { area : area, error : err.message }, 'Could not change message area');
|
||||
|
|
|
@ -75,7 +75,6 @@ function ViewController(options) {
|
|||
// :TODO: need to do validation here!!!
|
||||
var focusedView = self.focusedView;
|
||||
self.validateView(focusedView, function validated(err, newFocusedViewId) {
|
||||
console.log(err)
|
||||
if(err) {
|
||||
var newFocusedView = self.getView(newFocusedViewId) || focusedView;
|
||||
self.setViewFocusWithEvents(newFocusedView, true);
|
||||
|
|
|
@ -17,7 +17,7 @@ var _ = require('lodash');
|
|||
userName
|
||||
location
|
||||
affiliation
|
||||
timestamp
|
||||
ts
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var MenuModule = require('../core/menu_module.js').MenuModule;
|
||||
var ansi = require('../core/ansi_term.js');
|
||||
|
||||
exports.moduleInfo = {
|
||||
name : 'LogOff',
|
||||
desc : 'Log off / Goodbye Module',
|
||||
author : 'NuSkooler',
|
||||
};
|
||||
|
||||
exports.getModule = LogOffModule;
|
||||
|
||||
function LogOffModule(menuConfig) {
|
||||
MenuModule.call(this, menuConfig);
|
||||
}
|
||||
|
||||
require('util').inherits(LogOffModule, MenuModule);
|
||||
|
||||
LogOffModule.prototype.enter = function(client) {
|
||||
LogOffModule.super_.prototype.enter.call(this, client);
|
||||
};
|
||||
|
||||
LogOffModule.prototype.beforeArt = function() {
|
||||
LogOffModule.super_.prototype.beforeArt.call(this);
|
||||
|
||||
this.client.term.write(ansi.resetScreen());
|
||||
};
|
||||
|
||||
LogOffModule.prototype.mciReady = function(mciData) {
|
||||
LogOffModule.super_.prototype.mciReady.call(this, mciData);
|
||||
};
|
||||
|
||||
LogOffModule.prototype.finishedLoading = function() {
|
||||
LogOffModule.super_.prototype.finishedLoading.call(this);
|
||||
|
||||
this.client.term.write(ansi.normal() + '\nATH0\n');
|
||||
|
||||
this.client.end();
|
||||
};
|
Loading…
Reference in New Issue