lib/service_skeleton/runner.rb in service_skeleton-1.0.2 vs lib/service_skeleton/runner.rb in service_skeleton-1.0.3
- old
+ new
@@ -31,11 +31,11 @@
klass.register_ultravisor_children(@ultravisor, config: @config, metrics_registry: @metrics_registry)
end
def run
- logger.info(logloc) { "Starting service #{@config.service_name}" }
- logger.info(logloc) { (["Environment:"] + @config.env.map { |k, v| "#{k}=#{v.inspect}" }).join("\n ") }
+ @config.pre_run_logger.info(logloc) { "Starting service #{@config.service_name}" }
+ @config.pre_run_logger.info(logloc) { (["Environment:"] + @config.env.map { |k, v| "#{k}=#{v.inspect}" }).join("\n ") }
@ultravisor.run
end
private