Skip to content

Node.js based forum software built for the modern web

derp

Barış Soner Uşaklıd3fb339c370b
diff --git a/src/cli/upgrade.js b/src/cli/upgrade.js
index 4b6d769b69..ff3487388c 100644
--- a/src/cli/upgrade.js
+++ b/src/cli/upgrade.js
@@ -75,16 +75,14 @@ async function runUpgrade(upgrades, options) {
const path = require('path');
winston.configure({
transports: [
+ new winston.transports.Console({
+ handleExceptions: true,
+ }),
new winston.transports.File({
filename: path.join(__dirname, '../../', nconf.get('logFile') || 'logs/output.log'),
}),
],
});
- const stdoutWrite = process.stdout.write;
- process.stdout.write = function (...args) {
- winston.info(args[0]);
- stdoutWrite.apply(process.stdout, args);
- };
console.log(chalk.cyan('\nUpdating NodeBB...'));
options = options || {};