Skip to content

Commit bb74fd7

Browse files
p-datadogp
authored andcommitted
Report actual exception when reporting ThreadErrors (#4961)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 32e52d7 commit bb74fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog/core/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def safely_synchronize
238238
yield write_components
239239
rescue ThreadError => e
240240
logger_without_components.error(
241-
'Detected deadlock during datadog initialization. ' \
241+
"Detected deadlock during datadog initialization: #{e.class}: #{e}. " \
242242
'Please report this at https://github.com/datadog/dd-trace-rb/blob/master/CONTRIBUTING.md#found-a-bug' \
243243
"\n\tSource:\n\t#{Array(e.backtrace).join("\n\t")}"
244244
)

0 commit comments

Comments
 (0)