change default log level to WARNING #1215
No reviewers
Labels
No labels
bug
compositor
doc
duplicate
easy
enhancement
help wanted
invalid
not-a-bug
performance
question
refactor
regression
upstream
what do you think?
wiki
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dnkl/foot#1215
Loading…
Reference in a new issue
No description provided.
Delete branch "anarcat/foot:log-level-warning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The default foot output looks like this, in Debian testing "bookworm"
at the time of writing:
That's 17 lines of output that are mostly useless for most use
cases. I might understand having this output during the project's
startup, when it's helpful for diagnostics, but now Foot just mostly
works everywhere, and I've never had a use for any of that stuff in
the (arguably short) time I've been using Foot so far.
And if I do, there's the
--log-levelcommandline option to tweakthis. At first, I looked at tweaking the log level through the config
file. But as explained in issue #1142 there's a chicken and egg
problem there that makes it hard to implement and possibly confusing
for users as well.
There's also the possibility for users to change the shortcut with
which they start foot, for example a
.desktopfile so that menusystems that support those start foot properly. But that only works in
that environment, and not through the so many things that will just
call
footand hope it will do the right thing.In my case, I have
foothardcoded in a lot of places now, betweensway and waybar, and this is only going to grow. Others have suggested
adding the flag to a $TERMINAL global variable, but that won't help
.desktop users.
So, instead of playing whack-a-mole with the log levels, just make it
so that, by default, foot is silent. This is actually one of the
basics of UNIX philosophy:
And yes, I am aware I am severely violating that principle by writing
a way too long commit log for a one-line patch, but there you go, I
figured it was good to document the why of this properly.
72d56f9featoefa4c819a8i rolled out a new version which includes changes to the README file, the manual page, and the shell completion (where relevant, basically just zsh and fish). I also made the change in foot-client, even though that wasn't discussed, because it seems more consistent.
Looks good, just needs a changelog entry, then I can merge.
efa4c819a8to4ec3c68c454ec3c68c45tob80c7f75fedone, thanks!
Thanks!