Skip to content

Commit 4106246

Browse files
authored
Merge branch 'main' into @invertase/float-param-unsupported
2 parents 3e456b8 + d2c8bb0 commit 4106246

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/firebase_functions/logger.py

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
import typing as _typing
99
import typing_extensions as _typing_extensions
1010

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+
1117

1218
class LogSeverity(str, _enum.Enum):
1319
"""

0 commit comments

Comments
 (0)