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 6ecae34 commit 7ec113dCopy full SHA for 7ec113d
crates/syn2mas/src/migration.rs
@@ -512,7 +512,9 @@ async fn migrate_devices(
512
// As we're using a real IP type in the MAS database, it is possible
513
// that we encounter invalid IP addresses in the Synapse database.
514
// In that case, we should ignore them, but still log a warning.
515
- let last_active_ip = ip.and_then(|ip| {
+ // One special case: Synapse will record '-' as IP in some cases, we don't want
516
+ // to log about those
517
+ let last_active_ip = ip.filter(|ip| ip != "-").and_then(|ip| {
518
ip.parse()
519
.map_err(|e| {
520
tracing::warn!(
0 commit comments