From 0663446f0ccf3f95dcb8dd851993b73607b13406 Mon Sep 17 00:00:00 2001 From: Rodger-Wang <1367893453@qq.com> Date: Sat, 29 Aug 2026 17:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=A5=E5=BF=97=20apps/ser?= =?UTF-8?q?vices/comm/log=20=E7=A7=BB=E5=87=BA=E7=89=88=E6=9C=AC=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lego 未配置日志路径时会在工作目录写 ./log,本地跑一次服务或 go test 就被覆写一次, 每次都产生一条无意义 diff(内容是同一条微信支付密钥解密失败的告警,只有时间戳在变)。 Co-Authored-By: Claude Opus 5 (1M context) --- .gitignore | 4 ++++ apps/services/comm/log | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 apps/services/comm/log diff --git a/.gitignore b/.gitignore index 5e580abb..fffe2006 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,7 @@ apps/services/timer node_modules/ .output/ .nuxt/ + +# 误入库的运行日志:lego 未配置日志路径时会在工作目录写 ./log, +# 本地跑一次服务或 go test 就被覆写一次,制造无意义 diff。 +apps/services/comm/log diff --git a/apps/services/comm/log b/apps/services/comm/log deleted file mode 100644 index eaf64f25..00000000 --- a/apps/services/comm/log +++ /dev/null @@ -1 +0,0 @@ -2026/08/20 17:15:59.311 ERROR comm/moduleconfig.go:247 [ModuleConfig] 密钥字段解密失败,已跳过该字段(保留默认值) module=wechatpay key=PrivateKeyPath err=GCM 解密失败: cipher: message authentication failed 本服务key指纹=sha256:19731e34cd8c [不足 32 字节,已右侧补零(原长 30)] 【诊断】密文是用「空 key(FIELD_ENCRYPT_KEY 未注入时补零出的全零密钥)」(指纹 sha256:17a63bfb3b5b [!!未配置 FIELD_ENCRYPT_KEY,正在使用全零密钥])加密的存量数据,与本服务当前 key 不是同一把 —— 到 console 后台把该字段重新填一遍保存,即可用当前 key 重新加密落库