“error opening config file” is not an error #2

Closed
opened 4 years ago by Ghost · 1 comments
Ghost commented 4 years ago

How to reproduce: Create ~/.config/hkd/config and run hkd.

“error opening config file” gets printed although hkd works fine. A better message would be: “info: environment variable $XDG_CONFIG_HOME not set: falling back to ~/.config.” However, it would be even better to follow the rule of silence and print no message.

How to reproduce: Create `~/.config/hkd/config` and run `hkd`. “error opening config file” gets printed although `hkd` works fine. A better message would be: “info: environment variable $XDG_CONFIG_HOME not set: falling back to ~/.config.” However, it would be even better to follow the [rule of silence][1] and print no message. [1]: http://www.linfo.org/rule_of_silence.html
Owner

you're right, I didn't know about the rule of silence before and the "error" messages are not useful apart from debugging.
I made it so that all the messages are disabled by default and -v turns them back on.

you're right, I didn't know about the rule of silence before and the "error" messages are not useful apart from debugging. I made it so that all the messages are disabled by default and -v turns them back on.
alema closed this issue 4 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: alema/hkd#2
Loading…
There is no content yet.