kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
7 stars 6 forks source link

feat: add specific log file to gather current patch-hub execution logs #59

Closed lorenzoberts closed 4 weeks ago

lorenzoberts commented 1 month ago

This PR makes it easier to debug patch-hub since the developer can always get the current logs by looking at the same file, allowing them to follow the logs as they are generated.

In the future, we could create a specific cargo command to watch thelatest.log file, but for now, we need to run a command like: watch -n 0.5 -d cat ~/.local/share/patch_hub/logs/latest.log.

Thanks to @OJarrisonn for the file name suggestion.

Closes #58

OJarrisonn commented 1 month ago

If i'm not mistaken, tail -f also can be used to read the log file while it's being written

davidbtadokoro commented 4 weeks ago

If i'm not mistaken, tail -f also can be used to read the log file while it's being written

True and maybe more simple, as watch overwrites the whole screen. So in the case of many events, the visualization would be cleaner with tail -f.

davidbtadokoro commented 4 weeks ago

Change merged into the unstable branch :+1: