Skip to content

Commit

Permalink
(bluefox) remove needless warning output
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jul 27, 2015
1 parent 9295ba6 commit e6b3acd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2313,23 +2313,21 @@ function checkRestartOther(adapter, callback) {
obj.common.enabled = true;

objects.setObject(obj._id, obj, function (err) {
console.log('Adapter "' + obj._id + ' restarted.');
console.log('Adapter "' + obj._id + '" restarted.');
callback();
});
} else {
if (err) {
console.error('Cannot restart adapter "' + obj._id + ': ' + err);
console.error('Cannot restart adapter "' + obj._id + '": ' + err);
} else {
console.warn('Adapter "' + obj._id + ' is disabled and cannot be restarted.');
console.warn('Adapter "' + obj._id + '" is disabled and cannot be restarted.');
}
callback();
}
});
} else {
if (err) {
console.error('Cannot restart adapter "' + (obj ? obj._id : '') + ': ' + err);
} else {
console.warn('Adapter "' + (obj ? obj._id : '') + ' is disabled and cannot be restarted.');
console.error('Cannot restart adapter ' + (obj ? obj._id : '') + ': ' + err);
}
callback();
}
Expand Down

0 comments on commit e6b3acd

Please sign in to comment.