module PhusionPassenger::LoaderSharedHelpers

def before_loading_app_code_step1(startup_file, options)

passed to the request handler.
This function may modify +options+. The modified options are to be

+options+ are the spawn options that were given.
"config/environment.rb" for Rails apps and "config.ru" for Rack apps.
+startup_file+ is the application type's startup file, e.g.

This method is to be called before loading the application code.
Prepare an application process using rules for the given spawn options.
def before_loading_app_code_step1(startup_file, options)
	DebugLogging.log_level = options["log_level"] if options["log_level"]
	# Instantiate the analytics logger if requested. Can be nil.
	PhusionPassenger.require_passenger_lib 'analytics_logger'
	options["analytics_logger"] = AnalyticsLogger.new_from_options(options)
end