Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce logs from sqlx-sqlite #15064

Closed
Tracked by #14895
kwannoel opened this issue Feb 8, 2024 · 1 comment · Fixed by #15066
Closed
Tracked by #14895

Reduce logs from sqlx-sqlite #15064

kwannoel opened this issue Feb 8, 2024 · 1 comment · Fixed by #15066
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@kwannoel
Copy link
Contributor

kwannoel commented Feb 8, 2024

Many logs of this sort are emitted when cluster is idle:

2024-02-08T09:03:02.214900053Z  INFO sqlx-sqlite-worker-0 sqlx::query: summary=“INSERT INTO \“hummock_version_delta\” (\“id\“, …” db.statement=“\n\nINSERT INTO\n  \“hummock_version_delta\” (\n    \“id\“,\n    \“prev_id\“,\n    \“max_committed_epoch\“,\n    \“safe_epoch\“,\n    \“trivial_move\“,\n    \“full_version_delta\“\n  )\nVALUES\n  (?, ?, ?, ?, ?, ?) ON CONFLICT (\“id\“) DO\nUPDATE\nSET\n  \“prev_id\” = \“excluded\“.\“prev_id\“,\n  \“max_committed_epoch\” = \“excluded\“.\“max_committed_epoch\“,\n  \“safe_epoch\” = \“excluded\“.\“safe_epoch\“,\n  \“trivial_move\” = \“excluded\“.\“trivial_move\“,\n  \“full_version_delta\” = \“excluded\“.\“full_version_delta\“\n” rows_affected=1 rows_returned=0 elapsed=119.562µs
@github-actions github-actions bot added this to the release-1.7 milestone Feb 8, 2024
@kwannoel kwannoel added the type/bug Something isn't working label Feb 8, 2024
@kwannoel
Copy link
Contributor Author

kwannoel commented Feb 8, 2024

Jsut need to:

  1. https://docs.rs/sea-orm/latest/sea_orm/struct.ConnectOptions.html#method.get_sqlx_logging change the log level.
    Can be done in src/meta/node/src/server.rs.
  2. We can use RUST_LOG to configure the log level for sqlx logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants