mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-08 02:23:44 +00:00
update SEAFILE_LOG_TO_STDOUT (#7256)
This commit is contained in:
parent
356fd64d75
commit
b7b42b5854
@ -175,7 +175,11 @@ function start_seafile_server () {
|
|||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# seafile-monitor
|
# seafile-monitor
|
||||||
|
if [[ $SEAFILE_LOG_TO_STDOUT = "true" ]]; then
|
||||||
|
${INSTALLPATH}/seafile-monitor.sh &
|
||||||
|
else
|
||||||
${INSTALLPATH}/seafile-monitor.sh &>> ${TOPDIR}/logs/seafile-monitor.log &
|
${INSTALLPATH}/seafile-monitor.sh &>> ${TOPDIR}/logs/seafile-monitor.log &
|
||||||
|
fi
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ function start_seahub () {
|
|||||||
check_init_admin;
|
check_init_admin;
|
||||||
|
|
||||||
export DJANGO_SETTINGS_MODULE=seahub.settings
|
export DJANGO_SETTINGS_MODULE=seahub.settings
|
||||||
$PYTHON $gunicorn_exe seahub.wsgi:application -c "${gunicorn_conf}" --preload
|
$PYTHON $gunicorn_exe seahub.wsgi:application -c "${gunicorn_conf}" --preload &
|
||||||
|
|
||||||
# Ensure seahub is started successfully
|
# Ensure seahub is started successfully
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@ -647,12 +647,8 @@ TERMS_OF_SERVICE_LINK = ''
|
|||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
seafile_log_to_stdout = os.getenv('SEAFILE_LOG_TO_STDOUT', 0)
|
seafile_log_to_stdout = os.getenv('SEAFILE_LOG_TO_STDOUT', 'false') == 'true'
|
||||||
try:
|
if seafile_log_to_stdout:
|
||||||
enable_log_to_stdout = int(seafile_log_to_stdout)
|
|
||||||
except ValueError:
|
|
||||||
enable_log_to_stdout = 0
|
|
||||||
if enable_log_to_stdout:
|
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
'version': 1,
|
'version': 1,
|
||||||
# Enable existing loggers so that gunicorn errors will be bubbled up when
|
# Enable existing loggers so that gunicorn errors will be bubbled up when
|
||||||
|
Loading…
Reference in New Issue
Block a user