connection.on('error', (err) => { if (err.fatal) { Util.logc('MySQL', `[MySQL] Fatal error: ${err.code}`); Util.logc('MySQL', '[MySQL] Attempting to reconnect...'); exports.connect1(); } else { Util.log(`Non-fatal error: ${err.code}`); } });
connection.on('error', (err) => { if (err.fatal) { Util.logc('MySQL', `[MySQL] Fatal error: ${err.code}`); Util.logc('MySQL', '[MySQL] Attempting to reconnect...'); exports.connect1(); } else { Util.log(`Non-fatal error: ${err.code}`); } });