* Remove/fix up some console.log()'s

This commit is contained in:
Bryan Ashby
2015-12-13 17:32:05 -07:00
parent 1b68264dc2
commit 0489f5b2dd
6 changed files with 6 additions and 46 deletions

View File

@@ -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);
}
});

View File

@@ -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);

View File

@@ -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');

View File

@@ -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);