mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
shorting result if response was a website
This commit is contained in:
parent
eaa4161d14
commit
0640c8e371
@ -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) + '...',
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user