move a few MXC parsing logs to trace

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and Jason Volk committed 2024-08-29 19:19:20 +00:00
1 parent 1157140657
commit d5e7befaa9
1 file changed
+4 -4
+4 -4
View File
@@ -166,7 +166,7 @@ pub async fn get_all_mxcs(&self) -> Result<Vec<OwnedMxcUri>> {
let mut mxcs = Vec::with_capacity(all_keys.len());
for key in all_keys {
debug!("Full MXC key from database: {key:?}");
trace!("Full MXC key from database: {key:?}");
// we need to get the MXC URL from the first part of the key (the first 0xff /
// 255 push). this is all necessary because of conduit using magic keys for
@@ -184,7 +184,7 @@ pub async fn get_all_mxcs(&self) -> Result<Vec<OwnedMxcUri>> {
return Err!(Database("Parsed MXC URL unicode bytes from database but still is None"));
};
debug_info!("Parsed MXC key to URL: {mxc_s}");
trace!("Parsed MXC key to URL: {mxc_s}");
let mxc = OwnedMxcUri::from(mxc_s);
mxcs.push(mxc);
@@ -208,7 +208,7 @@ pub async fn delete_all_remote_media_at_after_time(&self, time: String, force: b
let mut remote_mxcs = Vec::with_capacity(all_keys.len());
for key in all_keys {
debug!("Full MXC key from database: {key:?}");
trace!("Full MXC key from database: {key:?}");
// we need to get the MXC URL from the first part of the key (the first 0xff /
// 255 push). this is all necessary because of conduit using magic keys for
@@ -226,7 +226,7 @@ pub async fn delete_all_remote_media_at_after_time(&self, time: String, force: b
return Err!(Database("Parsed MXC URL unicode bytes from database but still is None"));
};
debug_info!("Parsed MXC key to URL: {mxc_s}");
trace!("Parsed MXC key to URL: {mxc_s}");
let mxc = OwnedMxcUri::from(mxc_s);
if mxc.server_name() == Ok(self.services.globals.server_name()) {
debug!("Ignoring local media MXC: {mxc}");