diff --git a/CHANGELOG.md b/CHANGELOG.md index 02dce30b7..9b56ef4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.10.0-3] - 2021-02-16 +### Fixed +- Problem using Python 3.6 (StreamHandler.setStream introduced in 3.7) + ## [0.10.0-2] - 2021-02-12 ### Fixed - Missing python3-distutils dependency on Debian package. diff --git a/debian/changelog b/debian/changelog index c75e147be..926262f5d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +kibot (0.10.0-3) stable; urgency=medium + + * Fixed problem using Python 3.6 (#52) + (StreamHandler.setStream introduced in 3.7) + + -- Salvador E. Tropea Tue, 16 Feb 2021 12:01:03 -0300 + kibot (0.10.0-2) stable; urgency=medium * Added python3-distutils as dependency. diff --git a/kibot/log.py b/kibot/log.py index 56e4af401..6007b63c6 100644 --- a/kibot/log.py +++ b/kibot/log.py @@ -122,8 +122,7 @@ def init(): logger.addHandler(ch) # Handler for t info. # Outputs to stdout - ch = logging.StreamHandler() - ch.setStream(sys.stdout) + ch = logging.StreamHandler(sys.stdout) ch.addFilter(FilterOnlyInfo()) ch.setFormatter(CustomFormatter(sys.stdout)) logger.addHandler(ch)