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 c9426f8 commit 09d6d59Copy full SHA for 09d6d59
crates/syn2mas/src/migration.rs
@@ -527,7 +527,9 @@ async fn migrate_devices(
527
// As we're using a real IP type in the MAS database, it is possible
528
// that we encounter invalid IP addresses in the Synapse database.
529
// In that case, we should ignore them, but still log a warning.
530
- let last_active_ip = ip.and_then(|ip| {
+ // One special case: Synapse will record '-' as IP in some cases, we don't want
531
+ // to log about those
532
+ let last_active_ip = ip.filter(|ip| ip != "-").and_then(|ip| {
533
ip.parse()
534
.map_err(|e| {
535
tracing::warn!(
0 commit comments