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.
This commit is contained in:
MrGeneration 2019-07-11 15:43:20 +02:00 committed by Thorsten Eckel
parent 3f20b05469
commit 272344ae35

View file

@ -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 () {