Skip to content

Commit 73c45ec

Browse files
akefelic24t
authored andcommitted
Don't log exceptions in grpc server interceptor (census-instrumentation#496)
1 parent 6c472df commit 73c45ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opencensus/trace/ext/grpc/server_interceptor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
import logging
1514
import sys
1615

1716
import grpc
@@ -74,8 +73,7 @@ def new_behavior(request_or_iterator, servicer_context):
7473
span=span,
7574
message_event_type=time_event.Type.SENT,
7675
)
77-
except Exception as exc:
78-
logging.exception(exc)
76+
except Exception:
7977
_add_exc_info(span)
8078
raise
8179
finally:

0 commit comments

Comments
 (0)