Files
MemRelay/projects/e09440d3-e175-4bbb-96a9-253dc56dc51a/Checkpoint 2026-10-16 07-39-24 UTC [bf7766b951].md
T
memrelay 9e71610564 create: Checkpoint 2026-10-16 07:39:24 UTC [bf7766b951]
MemRelay-Operation: checkpoint-save:cmnet-checkpoint-debug-switch-20261016
MemRelay-Resource: 9c0dc274-4b8a-4204-8529-4a96b71729cf
2026-10-16 15:39:27 +08:00

26 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-16 07:39:24 UTC [bf7766b951]
type: checkpoint
permalink: main/projects/e09440d3-e175-4bbb-96a9-253dc56dc51a/checkpoint-2026-10-16-07-39-24-utc-bf7766b951
stable_id: 9c0dc274-4b8a-4204-8529-4a96b71729cf
scope: project
memory_type: checkpoint
project_id: e09440d3-e175-4bbb-96a9-253dc56dc51a
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: cmnet-checkpoint-debug-switch-20261016
created_at: '2026-10-16T07:39:24.521898+00:00'
updated_at: '2026-10-16T07:39:24.521898+00:00'
tags:
- cmnet
- handoff
---
完成:调试日志改为 debug.go 总开关 debugEnabled,默认关闭;调用点保留。同一提交包含退出后不保留登录态、会话失效立即清 Cookie、换号短信登录前丢弃账号 Cookie、扫码优先商城凭证、AES 库必须含 .AES=。
原因:用户要求不要逐个删调试调用,只在 debug 函数加总开关;并要求关闭调试后提交推送。
关键实现:internal/cmnet/debug.go 的 const debugEnabled=false;debugf/debugCookies/debugBody/debugRequest 在关闭时直接返回。main.go 经 cmnet.Debugf。
验证:go test ./internal/cmnet/ 通过(未跑 CMNET_LIVE)。提交 d5dcd70 已推送 origin/main(543fcce..d5dcd70)。
问题:旧进程若仍在跑,仍会打印开关打开时的日志;本次查看 8788 无监听进程。
下一步:用户重启 CMNETSMSInfo 后不会再输出调试信息。需要排查时把 debugEnabled 改为 true 后重启。
给下个会话:不要删调试调用点。不要把手机号、验证码、Cookie、密钥写入 MemRelay 或回复。决定 140dd6b7 仍是“移动不保留上次登录”,更新时带完整正文和当前 revision。