mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-13 03:15:44 +02:00
chore: provide basic logging to catch possible command errors (#3213)
* chore: provide basic logging to catch possible command errors --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
1dfb604d97
commit
55e445b511
18 changed files with 115 additions and 82 deletions
|
@ -146,7 +146,7 @@ void ScriptMgr::LoadCmd(CmdArgList args, ConnectionContext* cntx) {
|
|||
|
||||
auto res = Insert(body, interpreter);
|
||||
if (!res)
|
||||
return rb->SendError(res.error().Format());
|
||||
return cntx->SendError(res.error().Format());
|
||||
|
||||
// Schedule empty callback inorder to journal command via transaction framework.
|
||||
cntx->transaction->ScheduleSingleHop([](auto* t, auto* shard) { return OpStatus::OK; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue