Skip to content

Commit 06037ca

Browse files
[Python Misc] Revert change to print backtrace in server (v1.60.x backport) (#35462)
Backport of #34877 to v1.60.x. --- Fix: #34853 In order to make debugging easier, we have begun printing backtraces in servers. However, this change has the unintended consequence of printing errors to stderr by default, which may not be expected by some users. This PR reverts the change. We recommend that users set up a logging sink if they want to see errors. We will add this to our documentation later. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->
1 parent 612ba45 commit 06037ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/grpcio/grpc/_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def _call_behavior(
579579
exception.__traceback__,
580580
)
581581
)
582-
traceback.print_exc()
582+
traceback.print_exc()
583583
_LOGGER.exception(details)
584584
_abort(
585585
state,

0 commit comments

Comments
 (0)