lib/service_skeleton/generator.rb in service_skeleton-1.0.2 vs lib/service_skeleton/generator.rb in service_skeleton-1.0.3
- old
+ new
@@ -43,11 +43,11 @@
m
end
end
if config.metrics_port
- config.logger.info(config.service_name) { "Starting metrics server on port #{config.metrics_port}" }
+ config.pre_run_logger.info(config.service_name) { "Starting metrics server on port #{config.metrics_port}" }
ultravisor.add_child(
id: :metrics_server,
klass: Frankenstein::Server,
method: :run,
args: [
@@ -60,10 +60,10 @@
end
end
def initialize_loggerstash(ultravisor, config, registry)
if config.logstash_server && !config.logstash_server.empty?
- config.logger.info(config.service_name) { "Configuring loggerstash to send to #{config.logstash_server}" }
+ config.pre_run_logger.info(config.service_name) { "Configuring loggerstash to send to #{config.logstash_server}" }
ultravisor.add_child(
id: :logstash_writer,
klass: LogstashWriter,
method: :run,