# HG changeset patch # User Marcin Kuzminski # Date 2018-09-18 07:56:40 # Node ID 2040b47be06c83e7eccccd4769428abbe406e859 # Parent 563cae9b78adcee4d7ba20baffe055e6763fe0a0 exc_store: default value should be constant accross all types of instances for shared exception store diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -245,8 +245,8 @@ class HTTPApplication(object): vcsserver.CONFIG = settings_merged def _sanitize_settings_and_apply_defaults(self, 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( @@ -262,7 +262,7 @@ class HTTPApplication(object): _string_setting( settings, 'exception_tracker.store_path', - default_cache_dir, lower=False) + temp_store, lower=False, default_when_empty=True) # repo_object cache _string_setting(