File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ export abstract class Protocol {
54
54
}
55
55
56
56
private initMsgDebuggers ( protocol : ProtocolType ) {
57
- const MESSAGE_NAMES = Object . values ( this . _messageCodes ) . filter (
58
- ( value ) => typeof value === 'string' ,
57
+ const MESSAGE_NAMES = Object . keys ( this . _messageCodes ) . filter (
58
+ ( key ) => typeof key === 'string' ,
59
59
) as string [ ]
60
60
for ( const name of MESSAGE_NAMES ) {
61
61
this . msgDebuggers [ name ] = devp2pDebug . extend ( protocol ) . extend ( name )
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ import { secp256k1 } from 'ethereum-cryptography/secp256k1.js'
12
12
13
13
import type { EthStatusMsg } from './protocol/eth.ts'
14
14
15
- export const devp2pDebug = debug ( 'devp2p:#' )
15
+ // Do not use :# here, no logging without sub namespace occurring and current code structure
16
+ // otherwise creates loggers like `devp2p:#:eth`
17
+ export const devp2pDebug = debug ( 'devp2p' )
16
18
17
19
export function genPrivateKey ( ) : Uint8Array {
18
20
const privateKey = secp256k1 . utils . randomPrivateKey ( )
You can’t perform that action at this time.
0 commit comments