mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/legacymigrate: log portal info in post-migration
This commit is contained in:
parent
4820d4da48
commit
2353d323a4
1 changed files with 5 additions and 0 deletions
|
|
@ -221,6 +221,11 @@ func (br *BridgeMain) PostMigrate(ctx context.Context) error {
|
|||
return fmt.Errorf("failed to get all portals: %w", err)
|
||||
}
|
||||
for _, portal := range portals {
|
||||
zerolog.Ctx(ctx).Debug().
|
||||
Stringer("room_id", portal.MXID).
|
||||
Object("portal_key", portal.PortalKey).
|
||||
Str("room_type", string(portal.RoomType)).
|
||||
Msg("Migrating portal")
|
||||
switch portal.RoomType {
|
||||
case database.RoomTypeDM:
|
||||
err = br.postMigrateDMPortal(ctx, portal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue