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

@@ -97,12 +97,12 @@ Plugins.reload = function (callback) {
function (next) {
// If some plugins are incompatible, throw the warning here
if (Plugins.versionWarning.length && nconf.get('isPrimary') === 'true') {
process.stdout.write('\n');
console.log('');
winston.warn('[plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.');
for (var x = 0, numPlugins = Plugins.versionWarning.length; x < numPlugins; x += 1) {
process.stdout.write(' * '.yellow + Plugins.versionWarning[x] + '\n');
console.log(' * '.yellow + Plugins.versionWarning[x]);
}
process.stdout.write('\n');
console.log('');
}
Object.keys(Plugins.loadedHooks).forEach(function (hook) {