Skip to content

Commit

Permalink
chore(agent,devnet): logger tag spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jan 19, 2024
1 parent 3ea4f9d commit c88ee60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions agent/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export abstract class Connection extends Endpoint {
const identityColor = randomColor({ // address takes priority in determining color
luminosity: 'dark', seed: this.identity.address||this.identity.name
})
this.log.label += ' '
this.log.label += colors.bgHex(chainColor).whiteBright(
` ${this.identity.name||this.identity.address} `
)
Expand Down
2 changes: 1 addition & 1 deletion devnet/devnet-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function initLogger (devnet: $D<'chainId'|'log'>) {
const devnetTag = Core.colors.bgWhiteBright.black(` devnet `)
const loggerColor = Core.randomColor({ luminosity: 'dark', seed: devnet.chainId })
const loggerTag = Core.colors.whiteBright.bgHex(loggerColor)(` ${devnet.chainId} `)
const logger = new Core.Console(`${devnetTag}${loggerTag}`)
const logger = new Core.Console(`${devnetTag} ${loggerTag}`)
Object.defineProperties(devnet, {
log: {
enumerable: true, configurable: true, get () {
Expand Down

0 comments on commit c88ee60

Please sign in to comment.