mononoke: log resulting cs_id from megarepo calls

Summary: It's useful for debugging

Reviewed By: mojsarn

Differential Revision: D29960133

fbshipit-source-id: e026b473b4a9fecebe41f2fff22dd57d514e51ab
This commit is contained in:
Stanislau Hlebik 2021-07-29 02:32:59 -07:00 committed by Facebook GitHub Bot
parent fce80a62b0
commit 03f5a60109

View File

@ -328,8 +328,11 @@ impl MegarepoApi {
ctx.scuba().clone().log_with_msg("Started", None);
let res = f.await;
match &res {
Ok(_) => {
ctx.scuba().clone().log_with_msg("Success", None);
Ok(cs_id) => {
ctx.scuba()
.clone()
.add("Result", format!("{}", cs_id))
.log_with_msg("Success", None);
}
Err(err) => {
ctx.scuba()