exception_store: rename .ini option for future

This commit is contained in:
Marcin Kuzminski 2018-09-13 14:35:14 +02:00
parent ad23d1ec1f
commit ec2a3553cd
4 changed files with 4 additions and 27 deletions

View file

@ -20,17 +20,6 @@ debug = true
## email FROM address all mails will be sent
#app_email_from = rhodecode-noreply@localhost
## Uncomment and replace with the address which should receive any error report
## note: using appenlight for error handling doesn't need this to be uncommented
#email_to = admin@localhost
## in case of Application errors, sent an error email form
#error_email_from = rhodecode_error@localhost
## additional error message to be send in case of server crash
#error_message =
#smtp_server = mail.server.com
#smtp_username =
#smtp_password =
@ -293,8 +282,7 @@ supervisor.group_id = dev
labs_settings_active = true
## custom exception store path, defaults to TMPDIR
exception_store_path =
exception_tracker.store_path =
####################################
### CELERY CONFIG ####

View file

@ -20,17 +20,6 @@ debug = true
## email FROM address all mails will be sent
#app_email_from = rhodecode-noreply@localhost
## Uncomment and replace with the address which should receive any error report
## note: using appenlight for error handling doesn't need this to be uncommented
#email_to = admin@localhost
## in case of Application errors, sent an error email form
#error_email_from = rhodecode_error@localhost
## additional error message to be send in case of server crash
#error_message =
#smtp_server = mail.server.com
#smtp_username =
#smtp_password =
@ -268,7 +257,7 @@ supervisor.group_id = prod
labs_settings_active = true
## custom exception store path, defaults to TMPDIR
exception_store_path =
exception_tracker.store_path =
####################################

View file

@ -452,7 +452,7 @@ def _sanitize_cache_settings(settings):
# exception store cache
_string_setting(
settings,
'exception_store_path',
'exception_tracker.store_path',
default_cache_dir, lower=False)
# cache_perms

View file

@ -57,7 +57,7 @@ def get_exc_store():
"""
import rhodecode as app
exc_store_dir = app.CONFIG.get('exception_store_path', '') or tempfile.gettempdir()
exc_store_dir = app.CONFIG.get('exception_tracker.store_path', '') or tempfile.gettempdir()
_exc_store_path = os.path.join(exc_store_dir, exc_store_dir_name)
_exc_store_path = os.path.abspath(_exc_store_path)