From eb350083c485629864c039120a10420d646bd287 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 30 Sep 2022 17:54:11 +1000 Subject: [PATCH] Fix logging issue --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/core/subscriptions.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8a0abcc2..e008cf65 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@heroicons/react": "^2.0.11", "@hookform/resolvers": "^2.9.8", "@meshtastic/eslint-config": "^1.0.8", - "@meshtastic/meshtasticjs": "^0.6.102", + "@meshtastic/meshtasticjs": "^0.6.103", "@tailwindcss/line-clamp": "^0.4.2", "@tailwindcss/typography": "^0.5.7", "base64-js": "^1.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f32618d3..14b6f71b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ specifiers: '@heroicons/react': ^2.0.11 '@hookform/resolvers': ^2.9.8 '@meshtastic/eslint-config': ^1.0.8 - '@meshtastic/meshtasticjs': ^0.6.102 + '@meshtastic/meshtasticjs': ^0.6.103 '@tailwindcss/line-clamp': ^0.4.2 '@tailwindcss/typography': ^0.5.7 '@types/chrome': ^0.0.197 @@ -52,7 +52,7 @@ dependencies: '@heroicons/react': 2.0.11_react@18.2.0 '@hookform/resolvers': 2.9.8_react-hook-form@7.36.1 '@meshtastic/eslint-config': 1.0.8 - '@meshtastic/meshtasticjs': 0.6.102 + '@meshtastic/meshtasticjs': 0.6.103 '@tailwindcss/line-clamp': 0.4.2_tailwindcss@3.1.8 '@tailwindcss/typography': 0.5.7_tailwindcss@3.1.8 base64-js: 1.5.1 @@ -570,8 +570,8 @@ packages: - supports-color dev: false - /@meshtastic/meshtasticjs/0.6.102: - resolution: {integrity: sha512-mX4VhTxlyZ2T8Y15AWv59a7dkBxVMurPmeTflPd9gJKTfF8gpq8BKl/mmn3R0MhPdfpblGN1UkUlNx+GaCTQyw==} + /@meshtastic/meshtasticjs/0.6.103: + resolution: {integrity: sha512-jSLdkAYPp72vtuKJTYCxbng9ZDcbJ0hv6whdBL18rvhIxTXyaaFPDIC8IBYYTtgk7X4IR0CYGjycoiKChlBIeg==} dependencies: '@protobuf-ts/runtime': 2.8.1 '@serialport/stream': 10.3.0 diff --git a/src/core/subscriptions.ts b/src/core/subscriptions.ts index 9fa30b1e..821ba396 100644 --- a/src/core/subscriptions.ts +++ b/src/core/subscriptions.ts @@ -1,11 +1,11 @@ import type { Device } from "@core/stores/deviceStore.js"; -import { Protobuf, SettingsManager, Types } from "@meshtastic/meshtasticjs"; +import { Protobuf, Types } from "@meshtastic/meshtasticjs"; export const subscribeAll = ( device: Device, connection: Types.ConnectionType ) => { - SettingsManager.debugMode = Protobuf.LogRecord_Level.TRACE; + connection.setLogLevel(Protobuf.LogRecord_Level.TRACE); // onLogEvent // onMeshHeartbeat