Showing
2 changed files
with
9 additions
and
1 deletions
@@ -102,8 +102,10 @@ module.exports = (req, res, next) => { | @@ -102,8 +102,10 @@ module.exports = (req, res, next) => { | ||
102 | }); | 102 | }); |
103 | 103 | ||
104 | res.send(); | 104 | res.send(); |
105 | + | ||
106 | + logger.info('[client] handle OK [%s]', req.query.l); | ||
105 | } catch (e) { | 107 | } catch (e) { |
106 | - logger.error('[client] not handle client info [%s]', e); | 108 | + logger.error('[client] handle ERROR [%s]', e); |
107 | return next(e); | 109 | return next(e); |
108 | } | 110 | } |
109 | }; | 111 | }; |
@@ -10,6 +10,8 @@ const { | @@ -10,6 +10,8 @@ const { | ||
10 | 10 | ||
11 | const server = { | 11 | const server = { |
12 | async handle(data) { | 12 | async handle(data) { |
13 | + try { | ||
14 | + | ||
13 | let msgs = lineparse.parse(data); | 15 | let msgs = lineparse.parse(data); |
14 | 16 | ||
15 | msgs.forEach((m) => { | 17 | msgs.forEach((m) => { |
@@ -36,6 +38,10 @@ const server = { | @@ -36,6 +38,10 @@ const server = { | ||
36 | } | 38 | } |
37 | } | 39 | } |
38 | }); | 40 | }); |
41 | + logger.info('[server] handle OK [%s]', data); | ||
42 | + } catch (e) { | ||
43 | + logger.error('[server] handle ERROR [%s]', e); | ||
44 | + } | ||
39 | } | 45 | } |
40 | }; | 46 | }; |
41 | 47 |
-
Please register or login to post a comment