Closed lorenzoberts closed 4 weeks ago
If i'm not mistaken, tail -f
also can be used to read the log file while it's being written
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
.
Change merged into the unstable branch :+1:
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 the
latest.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