Use console.log instead of process.stdout.write (#6123)

* Use console.log instead of process.stdout.write

* Don't break the installer
This commit is contained in:
Peter Jaszkowiak
2017-11-27 13:44:30 -07:00
committed by Barış Soner Uşaklı
parent 15c8693a23
commit dbdc05404d
13 changed files with 153 additions and 153 deletions

View File

@@ -141,7 +141,7 @@ events.deleteAll = function (callback) {
};
events.output = function () {
process.stdout.write('\nDisplaying last ten administrative events...\n'.bold);
console.log('\nDisplaying last ten administrative events...'.bold);
events.getEvents(0, 9, function (err, events) {
if (err) {
winston.error('Error fetching events', err);
@@ -149,7 +149,7 @@ events.output = function () {
}
events.forEach(function (event) {
process.stdout.write(' * ' + String(event.timestampISO).green + ' ' + String(event.type).yellow + (event.text ? ' ' + event.text : '') + ' (uid: '.reset + (event.uid ? event.uid : 0) + ')\n');
console.log(' * ' + String(event.timestampISO).green + ' ' + String(event.type).yellow + (event.text ? ' ' + event.text : '') + ' (uid: '.reset + (event.uid ? event.uid : 0) + ')');
});
process.exit(0);