From 1fce9579eefe32a81b9805edc6a348f37605ac7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Tue, 15 Nov 2022 15:00:54 +0100 Subject: [PATCH] chore: log invalid buffer (#30) --- 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