Skip to content

Commit 68f0820

Browse files
committed
handle error
1 parent 5fc7a62 commit 68f0820

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@renderforest/notification-hooks",
33
"description": "Notification hooks",
4-
"version": "2.2.1-rc.1",
4+
"version": "2.2.1-rc.2",
55
"author": "RenderForest LLC",
66
"bugs": {
77
"url": "https://github.com/renderforest/notification-hooks/issues"

src/lib/log_over_udp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ function log_over_UDP (host, port, message, url, tag) {
66
const logObject = url + ' ' + message + ' ' + tag
77
const m = Buffer.from(JSON.stringify(logObject))
88
client.send(m, 0, m.length, port, host, function (err, bytes) {
9-
console.log(err)
9+
if (err) {
10+
console.log('UDP SEND ERROR', err)
11+
}
1012
client.close()
1113
})
1214
}
1315

14-
exports = {
15-
log_over_UDP
16-
}
16+
module.exports = log_over_UDP

0 commit comments

Comments
 (0)