Skip to content

Commit

Permalink
Change root debug namespaces to include a collon-hash to be included …
Browse files Browse the repository at this point in the history
…in wild-card namespaces
  • Loading branch information
scorbajio committed Sep 20, 2024
1 parent 79f6c2a commit c8f0032
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/blockchain/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class Blockchain implements BlockchainInterface {
constructor(opts: BlockchainOptions = {}) {
this.DEBUG =
typeof window === 'undefined' ? (process?.env?.DEBUG?.includes('ethjs') ?? false) : false
this._debug = debugDefault('blockchain')
this._debug = debugDefault('blockchain:#')

if (opts.common) {
this.common = opts.common
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain/src/constructors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { Chain } from '@ethereumjs/common'

const DEBUG =
typeof window === 'undefined' ? (process?.env?.DEBUG?.includes('ethjs') ?? false) : false
const debug = debugDefault('blockchain')
const debug = debugDefault('blockchain:#')

export async function createBlockchain(opts: BlockchainOptions = {}) {
const blockchain = new Blockchain(opts)
Expand Down
2 changes: 1 addition & 1 deletion packages/devp2p/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { secp256k1 } from 'ethereum-cryptography/secp256k1.js'
import type { ETH } from './protocol/eth.js'
import type { LES } from './protocol/les.js'

export const devp2pDebug = debug('devp2p')
export const devp2pDebug = debug('devp2p:#')

export function genPrivateKey(): Uint8Array {
const privateKey = secp256k1.utils.randomPrivateKey()
Expand Down
2 changes: 1 addition & 1 deletion packages/trie/src/trie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class Trie {

/** Debug logging */
protected DEBUG: boolean
protected _debug: Debugger = debug('trie')
protected _debug: Debugger = debug('trie:#')
protected debug: (...args: any) => void

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/verkle/src/verkleTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class VerkleTree {

/** Debug logging */
protected DEBUG: boolean
protected _debug: Debugger = debug('verkle')
protected _debug: Debugger = debug('verkle:#')
protected debug: (...args: any) => void
/**
* Creates a new verkle tree.
Expand Down

0 comments on commit c8f0032

Please sign in to comment.