Re: [chrony-dev] Print only errors to stderr

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Tue, Jul 02, 2019 at 07:55:16PM +0900, lameventanas@xxxxxxxxx wrote:
> Currently it's not possible to make chronyd to only print error messages
> to stderr.
> 
> This is because:
> 
> 1. There is no way to specify the minimum desired logging level (ie:
> LOGS_ERR)
> 
> 2. All the output goes to stderr, no matter what.  So I can't just
> redirect stdout to /dev/null.
> 
> Would it be possible to fix this?

I think a new option could be added to specify the maximum severity of
messages to be printed/logged. I'm just not sure if it should control
also debug messages (like the usual -D option) or if it should be
separate.

-- 
Miroslav Lichvar

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/