mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
remove memwatch-next, try/catch
This commit is contained in:
@@ -3,17 +3,6 @@ import logger from './libs/logger';
|
||||
import express from 'express';
|
||||
import http from 'http';
|
||||
|
||||
try {
|
||||
// @TODO: May need to remove - testing
|
||||
const memwatch = require('memwatch-next'); // eslint-disable-line global-require
|
||||
memwatch.on('leak', (info) => {
|
||||
const message = 'Memory leak detected.';
|
||||
logger.error(message, info);
|
||||
});
|
||||
} catch (err) {
|
||||
logger.info('"memwatch-next" couldn\'t be loaded.');
|
||||
}
|
||||
|
||||
const server = http.createServer();
|
||||
const app = express();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user