diff --git a/lib/shoryuken/environment_loader.rb b/lib/shoryuken/environment_loader.rb index 3b4757fe..ab5f6a63 100644 --- a/lib/shoryuken/environment_loader.rb +++ b/lib/shoryuken/environment_loader.rb @@ -53,7 +53,9 @@ def config_file_options # https://github.com/phstc/shoryuken/blob/a81637d577b36c5cf245882733ea91a335b6602f/lib/shoryuken.rb#L82 # Please delete this method afert next release (v2.0.12 or later) def initialize_aws - Shoryuken.logger.warn { "[DEPRECATION] aws in shoryuken.yml is deprecated. Please use configure_server and configure_client in your initializer"} unless Shoryuken.options[:aws].nil? + unless Shoryuken.options[:aws].to_h.empty? + Shoryuken.logger.warn { '[DEPRECATION] aws in shoryuken.yml is deprecated. Please use configure_server and configure_client in your initializer' } + end Shoryuken::AwsConfig.setup(Shoryuken.options[:aws]) end