Skip to content

Commit

Permalink
Handle bootsnap being disabled in BOOTSNAP_LOG
Browse files Browse the repository at this point in the history
Fix: #356
  • Loading branch information
byroot committed Apr 26, 2021
1 parent 3e94307 commit fa80667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bootsnap.rb
Expand Up @@ -27,7 +27,9 @@ def self.logger=(logger)

def self.instrumentation=(callback)
@instrumentation = callback
self.instrumentation_enabled = !!callback
if respond_to?(:instrumentation_enabled=, true)
self.instrumentation_enabled = !!callback
end
end

def self._instrument(event, path)
Expand Down

0 comments on commit fa80667

Please sign in to comment.