0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

modules/client/sync: Fix unmatched debuglog message at polylog handler completion.

This commit is contained in:
Jason Volk 2020-06-03 22:53:59 -07:00
parent 9e96863922
commit 1d45c9aecd

View file

@ -1020,16 +1020,23 @@ try
if(!ret)
checkpoint.committing(false);
if(!data.phased && stats::info)
log::info
{
log, "request %s polylog commit:%b complete @%ld",
loghead(data),
ret,
data.phased?
data.range.first:
data.range.second
};
const auto &log_level
{
!data.phased && stats::info?
log::level::INFO:
log::level::DEBUG
};
log::logf
{
log, log_level,
"request %s polylog commit:%b complete @%ld",
loghead(data),
ret,
data.phased?
data.range.first:
data.range.second
};
return ret;
}