From 272344ae3562d789a36d2fd8c59dfd4192dd3bc5 Mon Sep 17 00:00:00 2001 From: MrGeneration Date: Thu, 11 Jul 2019 15:43:20 +0200 Subject: [PATCH] Unset RAILS_LOG_TO_STDOUT by default This will solve issue #2660 and ensure that we're not changing the logging by default. Set RAILS_LOG_TO_STDOUT=true to enable logging to STDOUT. --- contrib/packager.io/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index fdd391aa9..d4a0caaac 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -303,6 +303,11 @@ function set_env_vars () { zammad config:set RUBY_GC_MALLOC_LIMIT_MAX=${ZAMMAD_RUBY_GC_MALLOC_LIMIT_MAX:=2177216} zammad config:set RUBY_GC_OLDMALLOC_LIMIT=${ZAMMAD_RUBY_GC_OLDMALLOC_LIMIT:=2177216} zammad config:set RUBY_GC_OLDMALLOC_LIMIT_MAX=${ZAMMAD_RUBY_GC_OLDMALLOC_LIMIT_MAX:=3000100} + if [[ "$(zammad config:get RAILS_LOG_TO_STDOUT)" == "enabled" ]];then + echo 'Setting default Logging to file, set via "zammad config:set RAILS_LOG_TO_STDOUT=true" if you want to log to STDOUT!' + zammad config:set RAILS_LOG_TO_STDOUT= + fi + } function final_message () {