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

Closed
opened 2020-07-29 19:12:22 +02:00 by Ghost · 1 comment

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 2020-07-29 21:28:29 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: alema/hkd#2
No description provided.