]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Py3): Reconfigure logs to write in UTF-8
authorOleg Broytman <phd@phdru.name>
Fri, 17 Nov 2023 22:32:53 +0000 (01:32 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Nov 2023 22:32:53 +0000 (01:32 +0300)
check_url.py
check_urls.py

index bb13be23a59bead68130405ffd224b12225c14e2..697d6775d04f4abdd48abc039e38faa37e533959 100755 (executable)
@@ -37,6 +37,7 @@ def run():
 
     from m_lib.flog import makelog
     log = makelog("check.log")
+    log.outfile.reconfigure(encoding='utf-8')
 
     from robots import robot
     robot = robot(log)
index a8f634a0ef8e53623b2b1ce95a11140eeec7accf..a666ea03d2762ca87647c7b75960d2574f92f7d5 100755 (executable)
@@ -61,6 +61,7 @@ def run():
         log("check_urls started")
         if report_stats:
             print("   check_urls: normal start")
+    log.outfile.reconfigure(encoding='utf-8')
 
     from storage import storage
     storage = storage()