Commit 1b46b75
improve: remove debug scaffolding and double-serialization from WindowsNodeClient (#150)
- Remove verbose debug block in SendNodeConnectAsync that logged sensitive
data (auth token prefix, Ed25519 signature, full connect payload) on every
connect attempt; this ran in all builds, not just debug.
- Eliminate redundant BuildDebugPayload() call (was called twice: once for
logging, once inside SignPayload) — only the SignPayload call remains.
- Remove duplicate JSON serialization: msg was serialized twice (once with
WriteIndented for the debug log, once compact to actually send); collapse
to a single compact serialization and remove the now-unused s_indentedOptions
field.
- Remove HandleResponse debug log that allocated a full payload string just
to truncate it for a Debug()-level message.
No functional change; connection, signing, and registration behaviour are
identical. Test status: 525 Shared passed, 99 Tray passed.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>1 parent 5b57ebd commit 1b46b75
File tree
1 file changed
+2
-24
lines changed1 file changed
+2
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | 360 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 361 | | |
376 | 362 | | |
377 | 363 | | |
| |||
418 | 404 | | |
419 | 405 | | |
420 | 406 | | |
421 | | - | |
422 | | - | |
423 | | - | |
| 407 | + | |
424 | 408 | | |
425 | 409 | | |
426 | 410 | | |
427 | 411 | | |
428 | 412 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 413 | | |
433 | 414 | | |
434 | 415 | | |
435 | 416 | | |
436 | 417 | | |
437 | 418 | | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | 419 | | |
442 | 420 | | |
443 | 421 | | |
| |||
0 commit comments