shorting result if response was a website

This commit is contained in:
einhorn_b 2024-01-22 12:33:55 +01:00
parent eaa4161d14
commit 0640c8e371

View File

@ -50,9 +50,10 @@ export class FederationClient {
)
return data.getPublicKey.publicKey
} catch (err) {
const errorString = JSON.stringify(err)
logger.warn('Federation: getPublicKey failed for endpoint', {
endpoint: this.endpoint,
err,
err: errorString.length <= 100 ? errorString : errorString.substring(0, 200) + '...',
})
}
}
@ -78,9 +79,10 @@ export class FederationClient {
)
return data.getPublicCommunityInfo
} catch (err) {
const errorString = JSON.stringify(err)
logger.warn('Federation: getPublicCommunityInfo failed for endpoint', {
endpoint: this.endpoint,
err,
err: errorString.length <= 100 ? errorString : errorString.substring(0, 200) + '...',
})
}
}