# HG changeset patch # User Marcin Kuzminski # Date 2018-09-18 08:30:58 # Node ID fbb1492ac7cd078aa7fe7eaaa604ee436e4fc34b # Parent 0d1c0e667a7d4c31301a3e3ac7ac6c5b39782201 exception_tracker: use a default value of exception store that is working across all instances e.g vcsserver and enterprise. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -436,8 +436,8 @@ def _sanitize_vcs_settings(settings): def _sanitize_cache_settings(settings): - - default_cache_dir = os.path.join(tempfile.gettempdir(), 'rc_cache') + temp_store = tempfile.gettempdir() + default_cache_dir = os.path.join(temp_store, 'rc_cache') # save default, cache dir, and use it for all backends later. default_cache_dir = _string_setting( @@ -453,7 +453,7 @@ def _sanitize_cache_settings(settings): _string_setting( settings, 'exception_tracker.store_path', - default_cache_dir, lower=False) + temp_store, lower=False, default_when_empty=True) # cache_perms _string_setting(