* Remove/fix up some console.log()'s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user