From cc5f3f7ee40c20d87accb32320f4eea4dd87856a Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Tue, 1 Jul 2025 15:32:21 +0200
Subject: [PATCH] change logoutputs
---
backend/src/federation/authenticateCommunities.ts | 10 ++++++----
database/src/logging/CommunityLogging.view.ts | 1 +
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/backend/src/federation/authenticateCommunities.ts b/backend/src/federation/authenticateCommunities.ts
index 5e38ebf6d..ec02d210c 100644
--- a/backend/src/federation/authenticateCommunities.ts
+++ b/backend/src/federation/authenticateCommunities.ts
@@ -25,7 +25,7 @@ export async function startCommunityAuthentication(
})
const foreignCom = await DbCommunity.findOneByOrFail({ publicKey: foreignFedCom.publicKey })
logger.debug(
- 'Authentication: started with foreignFedCom:',
+ 'started with foreignFedCom:',
foreignFedCom.endPoint,
foreignFedCom.publicKey.toString('hex'),
foreignCom.publicJwtKey,
@@ -55,18 +55,20 @@ export async function startCommunityAuthentication(
args.publicKey = homeCom.publicKey.toString('hex')
args.jwt = jws
logger.debug(
- 'Authentication: before client.openConnection() args:',
+ 'before client.openConnection() args:',
homeCom.publicKey.toString('hex'),
args.jwt,
)
if (await client.openConnection(args)) {
- logger.debug(`Authentication: successful initiated at community:`, foreignFedCom.endPoint)
+ logger.debug(`successful initiated at community:`, foreignFedCom.endPoint)
} else {
- logger.error(`Authentication: can't initiate at community:`, foreignFedCom.endPoint)
+ logger.error(`can't initiate at community:`, foreignFedCom.endPoint)
}
}
} catch (err) {
logger.error(`Error:`, err)
}
+ } else {
+ logger.debug(`foreignCom.communityUuid is not a valid v4Uuid or still a temporary onetimecode`)
}
}
diff --git a/database/src/logging/CommunityLogging.view.ts b/database/src/logging/CommunityLogging.view.ts
index 9bd847416..c06a4db41 100644
--- a/database/src/logging/CommunityLogging.view.ts
+++ b/database/src/logging/CommunityLogging.view.ts
@@ -13,6 +13,7 @@ export class CommunityLoggingView extends AbstractLoggingView {
foreign: this.self.foreign,
url: this.self.url,
publicKey: this.self.publicKey.toString(this.bufferStringFormat),
+ publicJwtKey: this.self.publicJwtKey,
communityUuid: this.self.communityUuid,
authenticatedAt: this.dateToString(this.self.authenticatedAt),
name: this.self.name,