diff --git a/src/accounts.rs b/src/accounts.rs
index a379b44e1..f81c9a7ca 100644
--- a/src/accounts.rs
+++ b/src/accounts.rs
@@ -262,7 +262,7 @@ impl Accounts {
pub async fn stop_io(&self) {
// Sending an event here wakes up event loop even
// if there are no accounts.
- info!(self, "Stopping IO for all accounts");
+ info!(self, "Stopping IO for all accounts.");
for account in self.accounts.values() {
account.stop_io().await;
}
diff --git a/src/blob.rs b/src/blob.rs
index cdc8ffc94..93bfbb3c5 100644
--- a/src/blob.rs
+++ b/src/blob.rs
@@ -417,7 +417,7 @@ impl<'a> BlobObject<'a> {
info!(
context,
- "Final scaled-down image size: {}B ({}px)",
+ "Final scaled-down image size: {}B ({}px).",
encoded.len(),
img_wh
);
@@ -458,7 +458,7 @@ impl<'a> BlobObject<'a> {
Some(3) => return Ok(180),
Some(6) => return Ok(90),
Some(8) => return Ok(270),
- other => warn!(context, "exif orientation value ignored: {:?}", other),
+ other => warn!(context, "Exif orientation value ignored: {other:?}."),
}
}
Ok(0)
@@ -490,7 +490,7 @@ impl<'a> BlobDirContents<'a> {
match entry {
Ok(entry) => Some(entry),
Err(err) => {
- error!(context, "Failed to read blob file: {err}");
+ error!(context, "Failed to read blob file: {err}.");
None
}
}
@@ -501,7 +501,7 @@ impl<'a> BlobDirContents<'a> {
false => {
warn!(
context,
- "Export: Found blob dir entry {} that is not a file, ignoring",
+ "Export: Found blob dir entry {} that is not a file, ignoring.",
entry.path().display()
);
None
@@ -569,7 +569,7 @@ fn encoded_img_exceeds_bytes(
if encoded.len() > max_bytes {
info!(
context,
- "image size {}B ({}x{}px) exceeds {}B, need to scale down",
+ "Image size {}B ({}x{}px) exceeds {}B, need to scale down.",
encoded.len(),
img.width(),
img.height(),
diff --git a/src/chat.rs b/src/chat.rs
index 9d49ec552..eaffb476f 100644
--- a/src/chat.rs
+++ b/src/chat.rs
@@ -247,7 +247,7 @@ impl ChatId {
} else {
warn!(
context,
- "Cannot create chat, contact {} does not exist.", contact_id,
+ "Cannot create chat, contact {contact_id} does not exist."
);
bail!("Can not create chat for non-existing contact");
}
@@ -285,7 +285,7 @@ impl ChatId {
let chat_id = ChatId::new(u32::try_from(row_id)?);
info!(
context,
- "Created group/mailinglist '{}' grpid={} as {}, blocked={}",
+ "Created group/mailinglist '{}' grpid={} as {}, blocked={}.",
grpname,
grpid,
chat_id,
@@ -338,14 +338,14 @@ impl ChatId {
if contact_id != ContactId::SELF {
info!(
context,
- "Blocking the contact {} to block 1:1 chat", contact_id
+ "Blocking the contact {contact_id} to block 1:1 chat."
);
Contact::block(context, contact_id).await?;
}
}
}
Chattype::Group => {
- info!(context, "Can't block groups yet, deleting the chat");
+ info!(context, "Can't block groups yet, deleting the chat.");
self.delete(context).await?;
}
Chattype::Mailinglist => {
@@ -500,7 +500,7 @@ impl ChatId {
let chat = Chat::load_from_db(context, self).await?;
if let Err(e) = self.inner_set_protection(context, protect).await {
- error!(context, "Cannot set protection: {}", e); // make error user-visible
+ error!(context, "Cannot set protection: {e:#}."); // make error user-visible
return Err(e);
}
@@ -1070,7 +1070,7 @@ impl ChatId {
);
info!(
context,
- "set gossiped_timestamp for chat {} to {}.", self, timestamp,
+ "Set gossiped_timestamp for chat {} to {}.", self, timestamp,
);
context
@@ -1211,7 +1211,7 @@ impl Chat {
Err(err) => {
error!(
context,
- "failed to load contacts for {}: {:#}", chat.id, err
+ "Failed to load contacts for {}: {:#}.", chat.id, err
);
}
}
@@ -2032,8 +2032,11 @@ async fn prepare_msg_blob(context: &Context, msg: &mut Message) -> Result<()> {
.with_context(|| format!("attachment missing for message of type #{}", msg.viewtype))?;
if msg.viewtype == Viewtype::Image {
- if let Err(e) = blob.recode_to_image_size(context).await {
- warn!(context, "Cannot recode image, using original data: {:?}", e);
+ if let Err(err) = blob.recode_to_image_size(context).await {
+ warn!(
+ context,
+ "Cannot recode image, using original data: {err:#}."
+ );
}
}
msg.param.set(Param::File, blob.as_name());
@@ -2256,7 +2259,7 @@ async fn create_send_msg_job(context: &Context, msg_id: MsgId) -> Result