File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def on_emit(self, log_data: LogData):
141141 "SimpleLogRecordProcessor.on_emit has entered a recursive loop. Dropping log and exiting the loop."
142142 )
143143 return
144- suppress_token = attach (set_value (_SUPPRESS_INSTRUMENTATION_KEY , True ))
144+ token = attach (set_value (_SUPPRESS_INSTRUMENTATION_KEY , True ))
145145 try :
146146 if self ._shutdown :
147147 _logger .warning ("Processor is already shutdown, ignoring call" )
@@ -152,7 +152,7 @@ def on_emit(self, log_data: LogData):
152152 except Exception : # pylint: disable=broad-exception-caught
153153 _logger .exception ("Exception while exporting logs." )
154154 finally :
155- detach (suppress_token )
155+ detach (token )
156156
157157 def shutdown (self ):
158158 self ._shutdown = True
You can’t perform that action at this time.
0 commit comments