# File src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb, line 222 def before_loading_app_code_step1(startup_file, options) DebugLogging.log_level = options["log_level"] if options["log_level"] # We always load the union_station_hooks_* gems and do not check for # `options["analytics"]` here. The gems don't actually initialize (and # load the bulk of their code) unless they have determined that # `options["analytics"]` is true. Regardless of whether Union Station # support is enabled in Passenger, the UnionStationHooks namespace must # be available so that applications can call it, even though the actual # calls don't do anything when Union Station support is disabled. PhusionPassenger.require_passenger_lib 'vendor/union_station_hooks_core/lib/union_station_hooks_core' UnionStationHooks.vendored = true PhusionPassenger.require_passenger_lib 'vendor/union_station_hooks_rails/lib/union_station_hooks_rails' UnionStationHooksRails.vendored = true end