Skip to content

Commit 34094f2

Browse files
Fix logs being printed to stderr instead of stdout (#424)
1 parent 59f7ba4 commit 34094f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning].
99

1010
### Fixed
1111

12+
- cli: Fixed logs being printed to stderr instead of stdout.
1213
- config: Fixed oneshot detection without `oneshot_indexes`.
1314

1415
## [5.2.3] - 2022-07-07

src/dipdup/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
def set_up_logging() -> None:
5757
root = logging.getLogger()
58-
handler = logging.StreamHandler()
58+
handler = logging.StreamHandler(stream=sys.stdout)
5959
formatter = logging.Formatter('%(levelname)-8s %(name)-20s %(message)s')
6060
handler.setFormatter(formatter)
6161
root.addHandler(handler)

0 commit comments

Comments
 (0)