mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
switch all error logs to using *_err macros
This commit is contained in:
parent
d28135f7ca
commit
a3448b5c84
29 changed files with 145 additions and 153 deletions
|
|
@ -75,7 +75,7 @@ impl Service {
|
|||
.state
|
||||
.get_create_content::<ExtractPredecessor>(room_id)
|
||||
.inspect_err(|error| {
|
||||
t::warn!(%error, "Failed to get room predecessor");
|
||||
warn_err!(error, "Failed to get room predecessor");
|
||||
})
|
||||
.ok()
|
||||
.flatten()
|
||||
|
|
@ -110,8 +110,8 @@ impl Service {
|
|||
event.get(),
|
||||
)
|
||||
.map_err(|error| {
|
||||
t::warn!(
|
||||
%error,
|
||||
warn_err!(
|
||||
error,
|
||||
%event_kind,
|
||||
"Invalid account data event",
|
||||
);
|
||||
|
|
@ -215,8 +215,8 @@ impl Service {
|
|||
RoomAccountDataEventType::Tag,
|
||||
&event,
|
||||
) {
|
||||
t::warn!(
|
||||
%error,
|
||||
warn_err!(
|
||||
error,
|
||||
"error writing m.tag account data to upgraded room"
|
||||
);
|
||||
}
|
||||
|
|
@ -293,9 +293,9 @@ impl Service {
|
|||
event_kind.clone(),
|
||||
&event,
|
||||
) {
|
||||
t::warn!(
|
||||
warn_err!(
|
||||
error,
|
||||
%event_kind,
|
||||
%error,
|
||||
"error writing account data event after upgrading room"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue