[Libre-soc-dev] Build failed: Kazan / mirrors / openpower-isa master: Commit 2f3b080: add version constraints on setup install_requires

Jacob Lifshay programmerjake at gmail.com
Wed Jun 15 05:20:52 BST 2022


On Tue, Jun 14, 2022 at 8:49 PM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:
>
> On Wed, Jun 15, 2022 at 4:35 AM Jacob Lifshay via Libre-soc-dev
> <libre-soc-dev at lists.libre-soc.org> wrote:
>
> > Then at least switch to using python logging, where you can select how
> > verbose you want it to be, redirect it to a file and/or filter it.
>
> thought about it at the time: the extra arguments waste space
> and would have required considerably more effort. s/print/log was
> an extremely rapid way to get the job done, without having
> to make massive intrusive tedious changes to the source code
> in order to keep to the PEP8 80 char limit by altering the output
> arguments.

Well, extra arguments are not needed, all you need is:
from logging import debug, info
and replace most print calls with debug, and the ones you want to
always see with info (or maybe warn/error as appropriate).

The configuration would happen in your main-fn/module-level code.

Jacob



More information about the Libre-soc-dev mailing list