mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Properly format matrix errors in spdlog statements
This commit is contained in:
parent
387ba1a1e6
commit
87bf761dc2
3 changed files with 7 additions and 7 deletions
|
@ -3572,7 +3572,7 @@ Cache::query_keys(const std::string &user_id,
|
|||
if (err) {
|
||||
nhlog::net()->warn(
|
||||
"failed to query device keys: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
cb({}, err);
|
||||
return;
|
||||
|
|
|
@ -45,7 +45,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *,
|
|||
user_id, [user_id, this](const UserKeyCache &res, mtx::http::RequestErr err) {
|
||||
if (err) {
|
||||
nhlog::net()->warn("failed to query device keys: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
return;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *,
|
|||
[this](const UserKeyCache &res, mtx::http::RequestErr err) {
|
||||
if (err) {
|
||||
nhlog::net()->warn("failed to query device keys: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
return;
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *,
|
|||
if (err) {
|
||||
nhlog::net()->error(
|
||||
"failed to upload signatures: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
}
|
||||
|
||||
|
@ -356,7 +356,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *,
|
|||
"id {}: {}, {}",
|
||||
user_id,
|
||||
key_id,
|
||||
e.errcode,
|
||||
mtx::errors::to_string(e.errcode),
|
||||
e.error);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ UserProfile::fetchDeviceList(const QString &userID)
|
|||
mtx::http::RequestErr err) {
|
||||
if (err) {
|
||||
nhlog::net()->warn("failed to query device keys: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
return;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ UserProfile::fetchDeviceList(const QString &userID)
|
|||
|
||||
if (err) {
|
||||
nhlog::net()->warn("failed to query device keys: {},{}",
|
||||
err->matrix_error.errcode,
|
||||
mtx::errors::to_string(err->matrix_error.errcode),
|
||||
static_cast<int>(err->status_code));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue