summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-31 21:53:21 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-31 21:53:21 -0500
commit3a5b23f642cfa44719c36f24f01ec246ae182411 (patch)
tree70814f3ca0b296f089bd56d6c9bd9b164dd43694
parentNewer ruby does not have Digest::MD5 built-in (diff)
downloadpackages-5-3a5b23f642cfa44719c36f24f01ec246ae182411.tar.gz
packages-5-3a5b23f642cfa44719c36f24f01ec246ae182411.tar.bz2
packages-5-3a5b23f642cfa44719c36f24f01ec246ae182411.zip
Sidekiq should not log at INFO in production.
Log at WARN instead, save some logging IO.
-rw-r--r--config/initializers/kkuleomi_config.rb.dist7
-rw-r--r--config/initializers/sidekiq.rb3
2 files changed, 9 insertions, 1 deletions
diff --git a/config/initializers/kkuleomi_config.rb.dist b/config/initializers/kkuleomi_config.rb.dist
index 3982107..0bbf86e 100644
--- a/config/initializers/kkuleomi_config.rb.dist
+++ b/config/initializers/kkuleomi_config.rb.dist
@@ -14,9 +14,14 @@ KKULEOMI_GIT='git'
# Who gets feedback
KKULEOMI_FEEDBACK_RECIPIENT='a3li@gentoo.org'
+# Default arches.
+KKULEOMI_ARCHES=%w(amd64 x86 alpha arm hppa ia64 ppc ppc64 sparc)
+
# Cache settings
# deployment:
-# Rails.application.config.cache_store = :mem_cache_store, '127.0.0.1'
+if ENV["MEMCACHE_URL"]
+ Rails.application.config.cache_store = :mem_cache_store, ENV['MEMCACHE_URL']
+end
# development:
# Rails.application.config.cache_store = :memory_store, { size: 64.megabytes }
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
new file mode 100644
index 0000000..0c051a5
--- /dev/null
+++ b/config/initializers/sidekiq.rb
@@ -0,0 +1,3 @@
+if Rails.env.production?
+ Sidekiq::Logging.logger.level = Logger::WARN
+end