Skip to content

Commit

Permalink
Improve debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jul 22, 2024
1 parent b459a35 commit 8517f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib-injection/host_inject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ def bundler_supported?
when !precheck.in_bundle?
dd_debug_log 'Not in bundle... skipping injection'
when !precheck.runtime_supported?
dd_debug_log "Runtime not supported: #{RUBY_DESCRIPTION}"
dd_send_telemetry(
[
{ name: 'library_entrypoint.abort', tags: ['reason:incompatible_runtime'] },
{ name: 'library_entrypoint.abort.runtime' }
]
)
when !precheck.platform_supported?
dd_debug_log "Platform check failed: #{local_platform}"
dd_debug_log "Platform not supported: #{local_platform}"
dd_send_telemetry([{ name: 'library_entrypoint.abort', tags: ['reason:incompatible_platform'] }])
when !Process.respond_to?(:fork)
dd_debug_log 'Fork not supported... skipping injection'
Expand Down

0 comments on commit 8517f8d

Please sign in to comment.