Skip to content

Node.js based forum software built for the modern web

chore: remove test code

Barış Soner Uşaklı07fe959ce508
diff --git a/app.js b/app.js
index d9d92f545d..1c7e5017d5 100644
--- a/app.js
+++ b/app.js
@@ -45,8 +45,6 @@ prestart.setupWinston();
prestart.versionCheck();
winston.verbose('* using configuration stored in: %s', configFile);
-winston.error('oppps we faled', new Error('yah'));
-
if (!process.send) {
// If run using `node app`, log GNU copyright info along with server info
winston.info('NodeBB v' + nconf.get('version') + ' Copyright (C) 2013-' + (new Date()).getFullYear() + ' NodeBB Inc.');
diff --git a/src/prestart.js b/src/prestart.js
index a46e7d3299..ed61e28c16 100644
--- a/src/prestart.js
+++ b/src/prestart.js
@@ -13,20 +13,6 @@ function setupWinston() {
return;
}
- // allow winton.error to log error objects properly
- // https://github.com/NodeBB/NodeBB/issues/6848
- // const winstonError = winston.error;
- // winston.error = function (msg, error) {
- // if (msg instanceof Error) {
- // winstonError(msg);
- // } else if (error instanceof Error) {
- // msg = msg + '\n' + error.stack;
- // winstonError(msg);
- // } else {
- // winstonError.apply(null, arguments);
- // }
- // };
-
var formats = [];
if (nconf.get('log-colorize') !== 'false') {
formats.push(winston.format.colorize());