From 90636881c305fba3c50a60a5eb66fa84c767216b Mon Sep 17 00:00:00 2001 From: Marin Petrunic Date: Tue, 15 Nov 2022 10:21:10 +0100 Subject: [PATCH] chore: log invalid buffer --- src/multistream.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/multistream.ts b/src/multistream.ts index 3eb670f..7d33914 100644 --- a/src/multistream.ts +++ b/src/multistream.ts @@ -13,6 +13,9 @@ import type { Source } from 'it-stream-types' import type { Reader } from 'it-reader' import type { MultistreamSelectInit } from '.' import { MAX_PROTOCOL_LENGTH } from './constants.js' +import { logger } from '@libp2p/logger' + +const log = logger('libp2p:mss') const NewLine = uint8ArrayFromString('\n') @@ -83,6 +86,7 @@ export async function read (reader: Reader, options?: AbortOptions): Promise