fix(shared): set logger encoding and dont assume encoding
Older versions of python might have ascii as default, we should not assume that the default encoding always is "utf-8" when opening files.
This commit is contained in:
parent
f6fe318278
commit
80dfbd3179
3 changed files with 4 additions and 3 deletions
|
@ -75,6 +75,7 @@ def setup_logger(
|
|||
"serialize": serialize,
|
||||
"rotation": "12:00",
|
||||
"retention": "7 days",
|
||||
"encoding": "utf-8",
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -108,6 +109,7 @@ def create_task_logger(
|
|||
"serialize": serialize,
|
||||
"rotation": "12:00",
|
||||
"retention": "7 days",
|
||||
"encoding": "utf-8",
|
||||
}
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue