Skip to content

Commit 4df2577

Browse files
committed
chore: fixup sparkplug encoder
1 parent e807bdf commit 4df2577

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/src/Model/sparkplugb.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const SparkplugDecoder = {
2626
export const SparkplugEncoder = {
2727
encode(input: string): Buffer | undefined {
2828
try {
29-
console.log(input)
3029
const payload = JSON.parse(input)
3130
return Buffer.from(
3231
SparkplugPayload.encode(
@@ -37,7 +36,7 @@ export const SparkplugEncoder = {
3736
).finish()
3837
)
3938
} catch (err) {
40-
// todo ?
39+
console.error(err)
4140
}
4241
},
4342
}

0 commit comments

Comments
 (0)