qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v6 3/7] qemu.py: use python logging system


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH v6 3/7] qemu.py: use python logging system
Date: Tue, 15 Aug 2017 10:10:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Please spell "Python" with a capital "P" (it's a proper name).

Amador Pahim <address@hidden> writes:

> Let's provide extra control and flexibility by using python logging
> system instead of print and/or sys.std*.write().
>
> Signed-off-by: Amador Pahim <address@hidden>

How exactly does this change error messages?

Is logging the right tool to report errors to the human user?  I'm
asking because logging and error reporting are generally separate
things.  Example: a program runs into a recoverable error.  It logs the
error, but does not report it.

Is reporting errors to stderr the right thing to do for library class
QEMUMachine?  I doubt it.  Libraries throw exceptions and let their
users decide how to handle them.



reply via email to

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