Skip to content

Commit

Permalink
Merge pull request #36 from renderforest/udp_log
Browse files Browse the repository at this point in the history
send tag first
  • Loading branch information
rg777777 authored Oct 21, 2020
2 parents 408e473 + 15dab8b commit a379d37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@renderforest/notification-hooks",
"description": "Notification hooks",
"version": "2.2.1",
"version": "2.2.2",
"author": "RenderForest LLC",
"bugs": {
"url": "https://github.com/renderforest/notification-hooks/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/log_over_udp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const dgram = require('dgram')

function log_over_UDP (host, port, message, url, tag) {
const client = dgram.createSocket('udp4')
const logObject = url + ' ' + message + ' ' + tag
const logObject = tag + ': ' + url + ' | ' + message
const m = Buffer.from(JSON.stringify(logObject))
client.send(m, 0, m.length, port, host, function (err, bytes) {
if (err) {
Expand Down

0 comments on commit a379d37

Please sign in to comment.