From ebd0d89dba1c50f64af440ed86e3e939d0d96940 Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Tue, 14 Jun 2022 22:45:01 +0300 Subject: [PATCH] chore(zset): add additional logs for parse errors --- src/server/zset_family.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/zset_family.cc b/src/server/zset_family.cc index 85e0082..0c7e553 100644 --- a/src/server/zset_family.cc +++ b/src/server/zset_family.cc @@ -956,6 +956,7 @@ void ZSetFamily::ZAdd(CmdArgList args, ConnectionContext* cntx) { double val = 0; if (!ParseScore(cur_arg, &val)) { + VLOG(1) << "Bad score:" << cur_arg << "|"; return (*cntx)->SendError(kInvalidFloatErr); } if (isnan(val)) { @@ -1049,6 +1050,7 @@ void ZSetFamily::ZIncrBy(CmdArgList args, ConnectionContext* cntx) { scored_member.second = ArgS(args, 3); if (!absl::SimpleAtod(score_arg, &scored_member.first)) { + VLOG(1) << "Bad score:" << score_arg << "|"; return (*cntx)->SendError(kInvalidFloatErr); }