We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f516594 commit e1dad20Copy full SHA for e1dad20
src/firebase_functions/logger.py
@@ -8,6 +8,11 @@
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
class LogSeverity(str, _enum.Enum):
18
"""
0 commit comments