]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Remove the log switching cacophony on startup
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 4 Dec 2023 20:56:54 +0000 (17:56 -0300)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 4 Dec 2023 21:43:52 +0000 (18:43 -0300)
commit6d97b71b614f65d1c78346c81730701e54182999
tree6d93df3e4761d039bcec1ae1d0ea460fe8bf9c5a
parentec918adeb0e641d41ee2571fd717cad139d939ad
Remove the log switching cacophony on startup

Resolves the first complaint of #103:

> I believe that if syslog output is enabled on the command line then
> fort should be able to not report these useless messages about
> switching the output back and forward.
>
> Also, there is no point in reporting in syslog that messages are
> being sent to syslog and on the console that messages are being sent
> to the console because this is self-evident.

Looking back at the history, it seems these messages were born because
a long time ago, sys-logging was hardcoded to "server" mode, while
console "logging" was tied to "standalone" mode. Default was "server,"
which meant a newcomer who managed to kickstart Fort in the foreground
with minimal arguments ended up with a validator that, on account of
looking silent, seemed to be doing absolutely nothing.

Given than logmode and runmode are completely independent now, and log
output defaults to "console," it would appear that these messages are,
as a matter of fact, completely useless.
src/log.c