mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #3219 from overleaf/spd-jel-v1-logging
Add URL to error log from V1SubscriptionManager GitOrigin-RevId: de55b3c017aa060a75d81e538be0dec3131b3baf
This commit is contained in:
parent
49d5bb0591
commit
ec0240395f
1 changed files with 6 additions and 2 deletions
|
@ -153,10 +153,11 @@ module.exports = V1SubscriptionManager = {
|
||||||
if (v1Id == null) {
|
if (v1Id == null) {
|
||||||
return callback(null, null, null)
|
return callback(null, null, null)
|
||||||
}
|
}
|
||||||
|
const url = options.url(v1Id)
|
||||||
return request(
|
return request(
|
||||||
{
|
{
|
||||||
baseUrl: settings.apis.v1.url,
|
baseUrl: settings.apis.v1.url,
|
||||||
url: options.url(v1Id),
|
url,
|
||||||
method: options.method,
|
method: options.method,
|
||||||
auth: {
|
auth: {
|
||||||
user: settings.apis.v1.user,
|
user: settings.apis.v1.user,
|
||||||
|
@ -169,7 +170,10 @@ module.exports = V1SubscriptionManager = {
|
||||||
function(error, response, body) {
|
function(error, response, body) {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
return callback(
|
return callback(
|
||||||
new V1ConnectionError('no v1 connection').withCause(error)
|
new V1ConnectionError({
|
||||||
|
message: 'no v1 connection',
|
||||||
|
info: { url }
|
||||||
|
}).withCause(error)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (response && response.statusCode >= 500) {
|
if (response && response.statusCode >= 500) {
|
||||||
|
|
Loading…
Reference in a new issue