Show More
@@ -190,8 +190,14 b' class HttpHooksCallbackDaemon(ThreadedHo' | |||||
190 |
|
190 | |||
191 |
|
191 | |||
192 | def get_txn_id_data_path(txn_id): |
|
192 | def get_txn_id_data_path(txn_id): | |
193 | root = tempfile.gettempdir() |
|
193 | import rhodecode | |
194 | return os.path.join(root, 'rc_txn_id_{}'.format(txn_id)) |
|
194 | ||
|
195 | root = rhodecode.CONFIG.get('cache_dir') or tempfile.gettempdir() | |||
|
196 | final_dir = os.path.join(root, 'svn_txn_id') | |||
|
197 | ||||
|
198 | if not os.path.isdir(final_dir): | |||
|
199 | os.makedirs(final_dir) | |||
|
200 | return os.path.join(final_dir, 'rc_txn_id_{}'.format(txn_id)) | |||
195 |
|
201 | |||
196 |
|
202 | |||
197 | def store_txn_id_data(txn_id, data_dict): |
|
203 | def store_txn_id_data(txn_id, data_dict): |
@@ -74,10 +74,10 b' class SimpleSvnApp(object):' | |||||
74 |
|
74 | |||
75 | if response.status_code not in [200, 401]: |
|
75 | if response.status_code not in [200, 401]: | |
76 | if response.status_code >= 500: |
|
76 | if response.status_code >= 500: | |
77 | log.error('Got SVN response:%s with text:`%s`', |
|
77 | log.error('Got SVN response:%s with text:\n`%s`', | |
78 | response, response.text) |
|
78 | response, response.text) | |
79 | else: |
|
79 | else: | |
80 | log.debug('Got SVN response:%s with text:`%s`', |
|
80 | log.debug('Got SVN response:%s with text:\n`%s`', | |
81 | response, response.text) |
|
81 | response, response.text) | |
82 | else: |
|
82 | else: | |
83 | log.debug('got response code: %s', response.status_code) |
|
83 | log.debug('got response code: %s', response.status_code) |
General Comments 0
You need to be logged in to leave comments.
Login now