Skip to content

Commit 235a584

Browse files
committed
log when loading files
1 parent 1660a74 commit 235a584

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/datadog/di/code_tracker.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ def start
8383

8484
# Also, pending line probes should only be installed for
8585
# non-eval'd code.
86-
DI.current_component&.probe_manager&.install_pending_line_probes(path)
86+
if component = DI.current_component
87+
component.logger.debug { "di: installing pending probes for #{path}" }
88+
component.probe_manager&.install_pending_line_probes(path)
89+
else
90+
Datadog.logger.debug { "di: loaded #{path}, but no DI component present" }
91+
end
8792
end
8893
# Since this method normally is called from customer applications,
8994
# rescue any exceptions that might not be handled to not break said

0 commit comments

Comments
 (0)