mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove JSON.stringify in logs
This commit is contained in:
parent
4458ce952b
commit
1af6e526bf
@ -205,9 +205,7 @@ export async function writeFederatedHomeCommunityEntries(pubKey: string): Promis
|
|||||||
homeCom.endPoint = homeApiVersions[i].url
|
homeCom.endPoint = homeApiVersions[i].url
|
||||||
homeCom.publicKey = Buffer.from(pubKey)
|
homeCom.publicKey = Buffer.from(pubKey)
|
||||||
await DbFederatedCommunity.insert(homeCom)
|
await DbFederatedCommunity.insert(homeCom)
|
||||||
logger.info(
|
logger.info(`federation home-community inserted successfully:`, homeApiVersions[i])
|
||||||
`federation home-community inserted successfully: ${JSON.stringify(homeApiVersions[i])}`,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Federation: Error writing federated HomeCommunity-Entries: ${err}`)
|
throw new Error(`Federation: Error writing federated HomeCommunity-Entries: ${err}`)
|
||||||
@ -233,7 +231,7 @@ export async function writeHomeCommunityEntry(pubKey: string): Promise<void> {
|
|||||||
homeCom.name = CONFIG.COMMUNITY_NAME
|
homeCom.name = CONFIG.COMMUNITY_NAME
|
||||||
homeCom.description = CONFIG.COMMUNITY_DESCRIPTION
|
homeCom.description = CONFIG.COMMUNITY_DESCRIPTION
|
||||||
await DbCommunity.save(homeCom)
|
await DbCommunity.save(homeCom)
|
||||||
logger.info(`home-community updated successfully: ${JSON.stringify(homeCom)}`)
|
logger.info(`home-community updated successfully:`, homeCom)
|
||||||
} else {
|
} else {
|
||||||
// insert a new homecommunity entry including a new ID and a new but ensured unique UUID
|
// insert a new homecommunity entry including a new ID and a new but ensured unique UUID
|
||||||
homeCom = new DbCommunity()
|
homeCom = new DbCommunity()
|
||||||
@ -245,7 +243,7 @@ export async function writeHomeCommunityEntry(pubKey: string): Promise<void> {
|
|||||||
homeCom.description = CONFIG.COMMUNITY_DESCRIPTION
|
homeCom.description = CONFIG.COMMUNITY_DESCRIPTION
|
||||||
homeCom.creationDate = new Date()
|
homeCom.creationDate = new Date()
|
||||||
await DbCommunity.insert(homeCom)
|
await DbCommunity.insert(homeCom)
|
||||||
logger.info(`home-community inserted successfully: ${JSON.stringify(homeCom)}`)
|
logger.info(`home-community inserted successfully:`, homeCom)
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Federation: Error writing HomeCommunity-Entry: ${err}`)
|
throw new Error(`Federation: Error writing HomeCommunity-Entry: ${err}`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user