From: Ian Jackson Date: Sun, 4 Apr 2021 11:52:40 +0000 (+0100) Subject: api: Some trace X-Git-Tag: otter-0.5.0~255 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b07a0e21c5612becda90f1a5d4d672eb15b3242a;p=otter.git api: Some trace Signed-off-by: Ian Jackson --- diff --git a/daemon/api.rs b/daemon/api.rs index 851f7738..f7b78ecd 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -137,6 +137,7 @@ fn api_piece_op(form: Json>) debug!("client={:?} pc.lastclient={:?} pc.gen_before={:?} pc.gen={:?} q_gen={:?} u_gen={:?}", &client, &gpc.lastclient, &gpc.gen_before_lastclient, &gpc.gen, &q_gen, &u_gen); if u_gen > q_gen { throw!(PieceOpError::Conflict) } + trace_dbg!("form.op", player, piece, &form.op, &gpc); form.op.check_held(gpc,player)?; let update = form.op.op_complex(ApiPieceOpArgs {