Skip to content

chore: reduce noise created by key-contact migration - #8741

Merged
link2xt merged 1 commit into
mainfrom
link2xt/no-key-contact-logs
Sep 24, 2026
Merged

link2xt merged 1 commit into
mainfrom
link2xt/no-key-contact-logs

Conversation

@link2xt

@link2xt link2xt commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Stop logging the time migration takes
and don't log anything when migration runs on a fresh database and only creates empty tables.

Without these changes every time profile is created, the following info lines are logged:

src/sql/migrations.rs:35: Starting key-contact transition.
src/sql/migrations.rs:82: Not yet configured, no need to migrate key-contacts
src/sql/migrations.rs:1942: key-contacts migration took 1.143721ms in total.

@link2xt
link2xt marked this pull request as ready for review September 23, 2026 20:11
Stop logging the time migration takes
and don't log anything when migration runs on a fresh database
and only creates empty tables.

Without these changes every time profile is created,
the following info lines are logged:

    src/sql/migrations.rs:35: Starting key-contact transition.
    src/sql/migrations.rs:82: Not yet configured, no need to migrate key-contacts
    src/sql/migrations.rs:1942: key-contacts migration took 1.143721ms in total.
@link2xt
link2xt force-pushed the link2xt/no-key-contact-logs branch from 472fdae to 0d8e9c4 Compare September 23, 2026 20:12

@Hocuri Hocuri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to clean up the logs a bit

@link2xt
link2xt merged commit 076f83f into main Sep 24, 2026
30 checks passed
@link2xt
link2xt deleted the link2xt/no-key-contact-logs branch September 24, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants