devbisme / skidl

SKiDL is a module that extends Python with the ability to design electronic circuits.
https://devbisme.github.io/skidl/
MIT License
1.06k stars 120 forks source link

fix: Use logging facilities to report summary #160

Closed geissdoerfer closed 2 years ago

geissdoerfer commented 2 years ago

Dumping summaries to stderr may disturb users of the lib. There's no sensible way to turn off such messages. The patch redirects summaries to the existing logging functions which can be controlled by users.

devbisme commented 2 years ago

Thanks!

I had to change your modifications so the # of errors/warnings were reported at the INFO level. Otherwise, they would increment the number of reported errors/warnings.

I also moved the PR to the development branch.