From c5d9d3e746c132cb66c71d19a2e97dee3f8fcc91 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Wed, 5 Nov 2014 18:32:12 +0000 Subject: [PATCH] Debug: Print the used config file. closes #2041 --- Changes.md | 1 + lib/sidekiq/cli.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/Changes.md b/Changes.md index c3b9f985..b3db1761 100644 --- a/Changes.md +++ b/Changes.md @@ -3,6 +3,7 @@ HEAD - Fix typo for generator test file name [dlackty, #2016] - Add Sidekiq::Middleware::Chain#prepend [seuros, #2029] +- Debug: Print the used config file 3.2.6 ----------- diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index b2f43d5f..60735c5b 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -353,6 +353,7 @@ module Sidekiq def parse_config(cfile) opts = {} if File.exist?(cfile) + logger.debug "Using config file: #{cfile}" opts = YAML.load(ERB.new(IO.read(cfile)).result) || opts opts = opts.merge(opts.delete(environment) || {}) parse_queues(opts, opts.delete(:queues) || [])