mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
log error response writing to trough
This commit is contained in:
parent
824c194142
commit
05148cfba4
@ -176,6 +176,10 @@ class TroughClient(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.post(write_url, sql, timeout=600)
|
response = requests.post(write_url, sql, timeout=600)
|
||||||
|
if response.status_code != 200:
|
||||||
|
raise Exception(
|
||||||
|
'Received %s: %r in response to POST %s with data %r' % (
|
||||||
|
response.status_code, response.text, write_url, sql))
|
||||||
if segment_id not in self._dirty_segments:
|
if segment_id not in self._dirty_segments:
|
||||||
with self._dirty_segments_lock:
|
with self._dirty_segments_lock:
|
||||||
self._dirty_segments.add(segment_id)
|
self._dirty_segments.add(segment_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user