Browse Source

Fix logging issue

pull/39/head
Sacha Weatherstone 4 years ago
parent
commit
eb350083c4
No known key found for this signature in database GPG Key ID: 7AB2D7E206124B31
  1. 2
      package.json
  2. 8
      pnpm-lock.yaml
  3. 4
      src/core/subscriptions.ts

2
package.json

@ -24,7 +24,7 @@
"@heroicons/react": "^2.0.11", "@heroicons/react": "^2.0.11",
"@hookform/resolvers": "^2.9.8", "@hookform/resolvers": "^2.9.8",
"@meshtastic/eslint-config": "^1.0.8", "@meshtastic/eslint-config": "^1.0.8",
"@meshtastic/meshtasticjs": "^0.6.102", "@meshtastic/meshtasticjs": "^0.6.103",
"@tailwindcss/line-clamp": "^0.4.2", "@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.7", "@tailwindcss/typography": "^0.5.7",
"base64-js": "^1.5.1", "base64-js": "^1.5.1",

8
pnpm-lock.yaml

@ -6,7 +6,7 @@ specifiers:
'@heroicons/react': ^2.0.11 '@heroicons/react': ^2.0.11
'@hookform/resolvers': ^2.9.8 '@hookform/resolvers': ^2.9.8
'@meshtastic/eslint-config': ^1.0.8 '@meshtastic/eslint-config': ^1.0.8
'@meshtastic/meshtasticjs': ^0.6.102 '@meshtastic/meshtasticjs': ^0.6.103
'@tailwindcss/line-clamp': ^0.4.2 '@tailwindcss/line-clamp': ^0.4.2
'@tailwindcss/typography': ^0.5.7 '@tailwindcss/typography': ^0.5.7
'@types/chrome': ^0.0.197 '@types/chrome': ^0.0.197
@ -52,7 +52,7 @@ dependencies:
'@heroicons/react': 2.0[email protected] '@heroicons/react': 2.0[email protected]
'@hookform/resolvers': 2.9[email protected] '@hookform/resolvers': 2.9[email protected]
'@meshtastic/eslint-config': 1.0.8 '@meshtastic/eslint-config': 1.0.8
'@meshtastic/meshtasticjs': 0.6.102 '@meshtastic/meshtasticjs': 0.6.103
'@tailwindcss/line-clamp': 0.4[email protected] '@tailwindcss/line-clamp': 0.4[email protected]
'@tailwindcss/typography': 0.5[email protected] '@tailwindcss/typography': 0.5[email protected]
base64-js: 1.5.1 base64-js: 1.5.1
@ -570,8 +570,8 @@ packages:
- supports-color - supports-color
dev: false dev: false
/@meshtastic/meshtasticjs/0.6.102: /@meshtastic/meshtasticjs/0.6.103:
resolution: {integrity: sha512-mX4VhTxlyZ2T8Y15AWv59a7dkBxVMurPmeTflPd9gJKTfF8gpq8BKl/mmn3R0MhPdfpblGN1UkUlNx+GaCTQyw==} resolution: {integrity: sha512-jSLdkAYPp72vtuKJTYCxbng9ZDcbJ0hv6whdBL18rvhIxTXyaaFPDIC8IBYYTtgk7X4IR0CYGjycoiKChlBIeg==}
dependencies: dependencies:
'@protobuf-ts/runtime': 2.8.1 '@protobuf-ts/runtime': 2.8.1
'@serialport/stream': 10.3.0 '@serialport/stream': 10.3.0

4
src/core/subscriptions.ts

@ -1,11 +1,11 @@
import type { Device } from "@core/stores/deviceStore.js"; import type { Device } from "@core/stores/deviceStore.js";
import { Protobuf, SettingsManager, Types } from "@meshtastic/meshtasticjs"; import { Protobuf, Types } from "@meshtastic/meshtasticjs";
export const subscribeAll = ( export const subscribeAll = (
device: Device, device: Device,
connection: Types.ConnectionType connection: Types.ConnectionType
) => { ) => {
SettingsManager.debugMode = Protobuf.LogRecord_Level.TRACE; connection.setLogLevel(Protobuf.LogRecord_Level.TRACE);
// onLogEvent // onLogEvent
// onMeshHeartbeat // onMeshHeartbeat

Loading…
Cancel
Save