mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Make khoj logger use utf-8 encoding when writing to khoj log file
Resolve logger error issue mentioned in #199
This commit is contained in:
parent
dc3f399f91
commit
d90df966a9
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def run():
|
|||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
# Set Log File
|
||||
fh = logging.FileHandler(state.config_file.parent / "khoj.log")
|
||||
fh = logging.FileHandler(state.config_file.parent / "khoj.log", encoding="utf-8")
|
||||
fh.setLevel(logging.DEBUG)
|
||||
logger.addHandler(fh)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue