give infos for exceptions

This commit is contained in:
einhorn_b 2024-01-22 12:00:14 +01:00
parent eb51fa8719
commit 3e32726fa1
3 changed files with 14 additions and 4 deletions

View File

@ -62,4 +62,5 @@ WEBHOOK_ELOPAGE_SECRET=secret
# LOG_LEVEL=info
# Federation
FEDERATION_VALIDATE_COMMUNITY_TIMER=60000
FEDERATION_VALIDATE_COMMUNITY_TIMER=60000
FEDERATION_XCOM_SENDCOINS_ENABLED=false

View File

@ -46,7 +46,10 @@ export class FederationClient {
)
return data.getPublicKey.publicKey
} catch (err) {
logger.warn('Federation: getPublicKey failed for endpoint', this.endpoint)
logger.warn('Federation: getPublicKey failed for endpoint', {
endpoint: this.endpoint,
err,
})
}
}
@ -71,7 +74,10 @@ export class FederationClient {
)
return data.getPublicCommunityInfo
} catch (err) {
logger.warn('Federation: getPublicCommunityInfo failed for endpoint', this.endpoint)
logger.warn('Federation: getPublicCommunityInfo failed for endpoint', {
endpoint: this.endpoint,
err,
})
}
}
}

View File

@ -63,7 +63,10 @@ export class AuthenticationClient {
return authUuid
}
} catch (err) {
logger.error('Authentication: authenticate failed for endpoint', this.endpoint)
logger.error('Authentication: authenticate failed', {
endpoint: this.endpoint,
err,
})
}
return null
}