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 7263bca commit 89416c8Copy full SHA for 89416c8
crates/syn2mas/src/migration.rs
@@ -414,7 +414,9 @@ async fn migrate_devices(
414
// As we're using a real IP type in the MAS database, it is possible
415
// that we encounter invalid IP addresses in the Synapse database.
416
// In that case, we should ignore them, but still log a warning.
417
- let last_active_ip = ip.and_then(|ip| {
+ // One special case: Synapse will record '-' as IP in some cases, we don't want
418
+ // to log about those
419
+ let last_active_ip = ip.filter(|ip| ip != "-").and_then(|ip| {
420
ip.parse()
421
.map_err(|e| {
422
tracing::warn!(
0 commit comments