[ovirt-devel] [vdsm] logging levels and noise in the log
Francesco Romani
fromani at redhat.com
Thu Jul 10 10:49:17 UTC 2014
----- Original Message -----
> From: "Martin Sivak" <msivak at redhat.com>
> To: devel at ovirt.org
> Sent: Thursday, July 10, 2014 12:09:14 PM
> Subject: [ovirt-devel] [vdsm] logging levels and noise in the log
>
> Hi,
>
> we discussed the right amount of logging with Nir and Francesco while
> reviewing my patches. Francesco was against one DEBUG log message that could
> potentially flood the logs. But the message in question was important for me
> and SLA, because it was logging the VDSM changes in response to MoM command.
>
> Since DEBUG really is meant to be used for debug messages, I have one
> proposal:
>
> 1) Change the default log level of vdsm.log to INFO
> 2) Log (only) DEBUG messages to a separate file vdsm-debug.log
> 3) Make the vdsm-debug.log rotate faster (every hour, keep only last couple
> of hours?) so it does not grow too much
>
> This way the customer would be able to monitor INFO logs (much smaller)
> without all the noise and we would be able to collect the DEBUG part in case
> something happens.
>
> What do you think?
+1, because it is an improvement with respect to our current situation.
but we need to carefully pick the debug log rotation frequency.
I also think that we probably need (myself first on the line) a bit more
thoughtful about what we log and on which level.
I believe that log.debug() is used a bit too leniently.
Again, I am the first in the line of guilty.
Bests,
--
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
More information about the Devel
mailing list