ipfs / ipfs-webui

A frontend for an IPFS Kubo and IPFS Desktop
https://webui.ipfs.io
MIT License
1.57k stars 490 forks source link

feat: settings screen - allow adjusting kubo log level #2294

Open SgtPooki opened 1 week ago

SgtPooki commented 1 week ago

Is your feature request related to a problem? Please describe.

We should allow users to configure the log level of their Kubo node from the webui settings screen.

Describe the solution you'd like

Create some config UI options in the settings page that will cause a call to https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-log-level to happen, to set the log level.

Describe alternatives you've considered

Additional context

We could have an entry like this for key:value view and adding/removing ${subsystem}:${logLevel} settings:

image

Bonus item

lidel commented 1 week ago

Somehow related, if we fixed https://github.com/ipfs/kubo/issues/9245 we could show logs in realtime in the webui, similar to how github actions print logs.

Also, we may decide to move this from "Settings" to a new "Diagnostics" screen, that has tabs at the top, and "Logs" sub-screen would be one of them.