qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL 6/6] add timestamp to error_report()


From: Seiji Aguchi
Subject: Re: [Qemu-devel] [PULL 6/6] add timestamp to error_report()
Date: Fri, 12 Jul 2013 14:23:04 +0000


> -----Original Message-----
> From: address@hidden [mailto:address@hidden
> On Behalf Of Luiz Capitulino
> Sent: Friday, July 12, 2013 8:47 AM
> To: Paolo Bonzini
> Cc: address@hidden; address@hidden
> Subject: Re: [Qemu-devel] [PULL 6/6] add timestamp to error_report()
> 
> On Fri, 12 Jul 2013 08:58:03 +0200
> Paolo Bonzini <address@hidden> wrote:
> 
> > Il 10/07/2013 19:52, Luiz Capitulino ha scritto:
> > > From: Seiji Aguchi <address@hidden>
> > >
> > > [Issue]
> > > When we offer a customer support service and a problem happens
> > > in a customer's system, we try to understand the problem by
> > > comparing what the customer reports with message logs of the
> > > customer's system.
> > >
> > > In this case, we often need to know when the problem happens.
> > >
> > > But, currently, there is no timestamp in qemu's error messages.
> > > Therefore, we may not be able to understand the problem based on
> > > error messages.
> > >
> > > [Solution]
> > > Add a timestamp to qemu's error message logged by
> > > error_report() with g_time_val_to_iso8601().
> > >
> > > Signed-off-by: Seiji Aguchi <address@hidden>
> > > Reviewed-by: Stefan Hajnoczi <address@hidden>
> > > Signed-off-by: Luiz Capitulino <address@hidden>
> >
> > What about removing the option, and instead:
> >
> > - logging no timestamp until the virtual machine has started
> 
> You mean, the guest has started? Why? What about if an error
> happens before the guest has started?

I agree with Luiz.
We need the timestamp to investigate an error before the guest has started.

> 
> > - always logging timestamps after the virtual machine has started
> 
> I don't like having this enabled by default, because it makes
> error messages pretty verbose and also because it's not human
> readable at a first glance. So, IMO, only people who really
> want this should enable it.

We have already discussed this.
There is an use case that timestamp is not needed.

http://marc.info/?l=qemu-devel&m=135997005926563&w=2

Seiji



reply via email to

[Prev in Thread] Current Thread [Next in Thread]