We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e456b8 + d2c8bb0 commit 4106246Copy full SHA for 4106246
src/firebase_functions/logger.py
@@ -8,6 +8,12 @@
8
import typing as _typing
9
import typing_extensions as _typing_extensions
10
11
+# If encoding is not 'utf-8', change it to 'utf-8'.
12
+if _sys.stdout.encoding != "utf-8":
13
+ _sys.stdout.reconfigure(encoding="utf-8") # type: ignore
14
+if _sys.stderr.encoding != "utf-8":
15
+ _sys.stderr.reconfigure(encoding="utf-8") # type: ignore
16
+
17
18
class LogSeverity(str, _enum.Enum):
19
"""
0 commit comments