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

risedev: support configure RUST_LOG in profile #16905

Closed
xxchan opened this issue May 23, 2024 · 0 comments · Fixed by #18396
Closed

risedev: support configure RUST_LOG in profile #16905

xxchan opened this issue May 23, 2024 · 0 comments · Fixed by #18396
Assignees

Comments

@xxchan
Copy link
Member

xxchan commented May 23, 2024

Motivation: when developing, many of the DEBUG logs are not interesting to me. It might be useful to some other developers, so not appropriate to configure globally. Set it at profile level sounds like a good idea.

Besides, maybe also allow setting pretty log output (with line number included)

2024-05-23T17:37:55.607947+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: update to hummock version: 136081, epoch: 6502604686884864
2024-05-23T17:37:55.608394+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: update to hummock version: 136082, epoch: 6502604752551936
2024-05-23T17:37:56.278969+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604818087936 is sealed
2024-05-23T17:37:56.279052+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604818087936 to seal has no data
2024-05-23T17:37:56.279106+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: start sync epoch: 6502604818087936
2024-05-23T17:37:56.279164+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: receive await sync epoch: 6502604818087936
2024-05-23T17:37:56.279205+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: awaiting for epoch to be synced: 6502604818087936, max_synced_epoch: 6502604752551936
2024-05-23T17:37:56.279268+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: epoch has been synced: 6502604818087936.
2024-05-23T17:37:56.284022+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: update to hummock version: 136083, epoch: 6502604818087936
2024-05-23T17:37:56.512992+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 2, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } started
2024-05-23T17:37:56.513085+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 1, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } started
2024-05-23T17:37:56.513138+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 3, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } started
2024-05-23T17:37:56.513213+08:00 DEBUG risingwave_batch::task::task_execution: Task TaskId { task_id: 3, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Running
2024-05-23T17:37:56.513213+08:00 DEBUG risingwave_batch::task::task_execution: Task TaskId { task_id: 2, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Running
2024-05-23T17:37:56.513296+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 0, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } started
2024-05-23T17:37:56.51341+08:00 DEBUG risingwave_batch::task::task_execution: Task TaskId { task_id: 0, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Running
2024-05-23T17:37:56.513213+08:00 DEBUG risingwave_batch::task::task_execution: Task TaskId { task_id: 1, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Running
2024-05-23T17:37:56.522504+08:00 DEBUG batch_execute{task_id=1 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Batch task TaskId { task_id: 1, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } finished successfully.
2024-05-23T17:37:56.522504+08:00 DEBUG batch_execute{task_id=0 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Batch task TaskId { task_id: 0, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } finished successfully.
2024-05-23T17:37:56.522607+08:00 DEBUG batch_execute{task_id=0 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Task TaskId { task_id: 0, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Finished
2024-05-23T17:37:56.522608+08:00 DEBUG batch_execute{task_id=1 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Task TaskId { task_id: 1, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Finished
2024-05-23T17:37:56.522664+08:00 DEBUG batch_execute{task_id=3 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Batch task TaskId { task_id: 3, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } finished successfully.
2024-05-23T17:37:56.522762+08:00 DEBUG batch_execute{task_id=3 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Task TaskId { task_id: 3, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Finished
2024-05-23T17:37:56.523144+08:00 DEBUG batch_execute{task_id=2 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Batch task TaskId { task_id: 2, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } finished successfully.
2024-05-23T17:37:56.52322+08:00 DEBUG batch_execute{task_id=2 stage_id=1 query_id="bd26131b-8d77-475a-ad4e-66fa77c57acf"}: risingwave_batch::task::task_execution: Task TaskId { task_id: 2, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } state changed to Finished
2024-05-23T17:37:56.52489+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 1, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } stopped
2024-05-23T17:37:56.524963+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 3, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } stopped
2024-05-23T17:37:56.525002+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 2, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } stopped
2024-05-23T17:37:56.525054+08:00 DEBUG risingwave_batch::task::task_manager: heartbeat worker for task TaskId { task_id: 0, stage_id: 1, query_id: "bd26131b-8d77-475a-ad4e-66fa77c57acf" } stopped
2024-05-23T17:37:57.278779+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604883623936 is sealed
2024-05-23T17:37:57.278948+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604883623936 to seal has no data
2024-05-23T17:37:57.27905+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: start sync epoch: 6502604883623936
2024-05-23T17:37:57.279187+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: epoch has been synced: 6502604883623936.
2024-05-23T17:37:57.279297+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: receive await sync epoch: 6502604883623936
2024-05-23T17:37:57.279374+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: epoch 6502604883623936 has been synced. Current max_sync_epoch 6502604883623936
2024-05-23T17:37:57.284904+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: update to hummock version: 136084, epoch: 6502604883623936
2024-05-23T17:37:58.280507+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604949094400 is sealed
2024-05-23T17:37:58.280679+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: epoch 6502604949094400 to seal has no data
2024-05-23T17:37:58.280782+08:00 DEBUG risingwave_storage::hummock::event_handler::uploader: start sync epoch: 6502604949094400
2024-05-23T17:37:58.280895+08:00 DEBUG risingwave_storage::hummock::event_handler::hummock_event_handler: receive await sync epoch: 6502604949094400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant