We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b310ffc commit 5de46fbCopy full SHA for 5de46fb
crates/syn2mas/src/migration.rs
@@ -562,7 +562,9 @@ async fn migrate_devices(
562
// As we're using a real IP type in the MAS database, it is possible
563
// that we encounter invalid IP addresses in the Synapse database.
564
// In that case, we should ignore them, but still log a warning.
565
- let last_active_ip = ip.and_then(|ip| {
+ // One special case: Synapse will record '-' as IP in some cases, we don't want
566
+ // to log about those
567
+ let last_active_ip = ip.filter(|ip| ip != "-").and_then(|ip| {
568
ip.parse()
569
.map_err(|e| {
570
tracing::warn!(
0 commit comments