change default log level to WARNING #1215
No reviewers
Labels
No Label
bug
doc
duplicate
easy
enhancement
help wanted
invalid
not-a-bug
performance
question
refactor
regression
upstream
what do you think?
wiki
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: dnkl/foot#1215
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "anarcat/foot:log-level-warning"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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-level
commandline 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
.desktop
file 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
foot
and hope it will do the right thing.In my case, I have
foot
hardcoded 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.
72d56f9fea
toefa4c819a8
i 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.
efa4c819a8
to4ec3c68c45
4ec3c68c45
tob80c7f75fe
done, thanks!
Thanks!