mirror of https://github.com/aria2/aria2
Log tracker request URI when processing response failed
parent
c63e315d3b
commit
8fbfb3ac84
|
@ -127,7 +127,13 @@ bool HTTPAnnRequest::processResponse
|
||||||
(reinterpret_cast<const unsigned char*>(res.c_str()), res.size());
|
(reinterpret_cast<const unsigned char*>(res.c_str()), res.size());
|
||||||
return true;
|
return true;
|
||||||
} catch(RecoverableException& e) {
|
} catch(RecoverableException& e) {
|
||||||
A2_LOG_ERROR_EX(EX_EXCEPTION_CAUGHT, e);
|
const auto& dctx = rg_->getDownloadContext();
|
||||||
|
const auto& fe = dctx->getFirstFileEntry();
|
||||||
|
auto uris = fe->getUris();
|
||||||
|
|
||||||
|
A2_LOG_ERROR_EX(fmt("GID#%s - Tracker request %s failed",
|
||||||
|
GroupId::toHex(rg_->getGID()).c_str(),
|
||||||
|
uris[0].c_str()), e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue