Open mtdeguzis opened 5 years ago
Hi, you want a true
instead of a false
, is this right?
Found invalid module in enabledModule directory "/etc/icingaweb2/enabledModules": "/etc/icingaweb2/enabledModules/batman" points to non existing path "
falsetrue"
What is better in this case? Or am I missing something here?
I'm not really clear on intention as it stands, the wording is a double negative. I'm not really sure what their desired state is or what it actually is when the error is thrown.
Off the cuff I'd think 'pointing to a non-existing path 'false' would be a good thing. I.E. the path does exist.
If the error is to be constructed in %s string pieces like this, I would think you would want true, as in "points to non-existing path, true", or drop the true/false entirely, as the statement is telling you the path it points to does not exist and is only thrown at the end of the logic check.
Oh come on. Of course false
is just what the result is after resolving the symbolic link. false
just means the link points to nothing. There may be another reason for why a link is invalid (a link pointing to a file) and that is why we just include the result in the log message. Sure, we may omit the result if it is false
. Though, to be honest, I guess this gets changed faster if you do it by yourself in a PR.
Describe the bug
When enabling a module, if a bad link is within /etc/icingaweb2/enabledModules, you will get a logger warning. I see this when building a new node out, but only on the first start/init, and not after. I was able to reproduce it in a way.
To Reproduce
Provide a link to a live example, or an unambiguous set of steps to reproduce this issue. Include configuration, logs, etc. to reproduce, if relevant.
Expected behavior
The message should be
.. or a better message sent to the user.
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
):php --version
):Additional context
Add any other context about the problem here.