diff --git a/federation/src/graphql/api/1_0/util/authenticateCommunity.ts b/federation/src/graphql/api/1_0/util/authenticateCommunity.ts index d69bfc4c5..00c140d9c 100644 --- a/federation/src/graphql/api/1_0/util/authenticateCommunity.ts +++ b/federation/src/graphql/api/1_0/util/authenticateCommunity.ts @@ -49,7 +49,7 @@ export async function startOpenConnectionCallback( const methodLogger = createLogger('startOpenConnectionCallback') methodLogger.addContext('handshakeID', handshakeID) methodLogger.debug(`Authentication: startOpenConnectionCallback() with:`, { - publicKey, + publicKey: publicKey.asHex(), }) const pendingState = await findPendingCommunityHandshake(publicKey, api, false) if (pendingState) { diff --git a/shared/src/helper/BinaryData.ts b/shared/src/helper/BinaryData.ts index f570ac381..c21fad9dd 100644 --- a/shared/src/helper/BinaryData.ts +++ b/shared/src/helper/BinaryData.ts @@ -1,3 +1,8 @@ +import { getLogger } from 'log4js' +import { LOG4JS_BASE_CATEGORY_NAME } from '../const' + +const logging = getLogger(`${LOG4JS_BASE_CATEGORY_NAME}.helper.BinaryData`) + /** * Class mainly for handling ed25519 public keys, * to make sure we have always the correct Format (Buffer or Hex String) @@ -7,6 +12,12 @@ export class BinaryData { private hex: string constructor(input: Buffer | string | undefined) { + if (!input) { + logging.debug('constructor() with undefined input') + } + logging.debug(`constructor() input type: ${typeof input}`) + logging.debug(`constructor() input isBuffer: ${Buffer.isBuffer(input)}`) + logging.debug(`constructor() input: ${input}`) if (typeof input === 'string') { this.buf = Buffer.from(input, 'hex') this.hex = input