From 883704672d986a3a41f7b4b1cbcec5642e0fe875 Mon Sep 17 00:00:00 2001 From: huangzhiran <30522704+huangzhiran@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:15:09 +0800 Subject: [PATCH] add more info log in recover process (#782) --- service/apinode/api/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/apinode/api/http.go b/service/apinode/api/http.go index 14abe903..0dd0af62 100644 --- a/service/apinode/api/http.go +++ b/service/apinode/api/http.go @@ -189,6 +189,7 @@ func recover(req CreateTaskReq, cfg *project.Config, sig []byte) (res []*struct value := gjson.GetBytes(req.Payload, k.Name) switch k.Type { case "uint64": + slog.Info("request json info", "json value uint64", value.Uint()) buf := new(bytes.Buffer) if err := binary.Write(buf, binary.LittleEndian, value.Uint()); err != nil { return nil, "", "", errors.New("failed to convert uint64 to bytes array") @@ -196,6 +197,7 @@ func recover(req CreateTaskReq, cfg *project.Config, sig []byte) (res []*struct d = append(d, buf.Bytes()...) } } + slog.Info("request json info", "hash_d_final", hexutil.Encode(d)) hash = sha256.Sum256(d) slog.Info("request json info", "hash_final", hexutil.Encode(hash[:])) }