Authored by htoooth

fix

... ... @@ -102,8 +102,10 @@ module.exports = (req, res, next) => {
});
res.send();
logger.info('[client] handle OK [%s]', req.query.l);
} catch (e) {
logger.error('[client] not handle client info [%s]', e);
logger.error('[client] handle ERROR [%s]', e);
return next(e);
}
};
... ...
... ... @@ -10,6 +10,8 @@ const {
const server = {
async handle(data) {
try {
let msgs = lineparse.parse(data);
msgs.forEach((m) => {
... ... @@ -36,6 +38,10 @@ const server = {
}
}
});
logger.info('[server] handle OK [%s]', data);
} catch (e) {
logger.error('[server] handle ERROR [%s]', e);
}
}
};
... ...