Commit d2daacf79c5bb4ee82e0a63e04300cc03c9ced4a
1 parent
c956984a75
Exists in
master
try to resolve get sn
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
partner-cjk.js
... | ... | @@ -66,13 +66,13 @@ function createXmlPayload(params) { |
66 | 66 | } |
67 | 67 | |
68 | 68 | function getSNFromMessage(message) { |
69 | + var sn_match = message.match(/SN: (\w+)/); | |
69 | 70 | try { |
70 | - var sn_match = message.match(/SN: (\w+)/); | |
71 | - | |
72 | 71 | logger.verbose('Got SN: ' + sn_match[1]); |
73 | 72 | return sn_match[1]; |
74 | 73 | } |
75 | 74 | catch(err) { |
75 | + logger.verbose('Exception on getting sn from message', {err: err, sn_match: sn_match}); | |
76 | 76 | return ''; |
77 | 77 | } |
78 | 78 | } |