Skip to content

Commit f2768ef

Browse files
committed
label debug
1 parent 39799e5 commit f2768ef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/comms/i2p-socket-comms.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const debug = require('debug')('dataparty.comms.i2psocket')
2+
const debugShim = require('debug')('dataparty.comms.i2psocket-shim')
23

34
const SAM = require('@diva.exchange/i2p-sam')
45
const EventEmitter = require('eventemitter3')
@@ -17,7 +18,7 @@ class I2pStreamShim extends EventEmitter {
1718
}
1819

1920
this.conn.onopen = () => {
20-
debug('shim open')
21+
debugShim('shim open')
2122
setTimeout(()=>{this.emit('connect')}, 1)
2223
}
2324

@@ -33,7 +34,7 @@ class I2pStreamShim extends EventEmitter {
3334
setTimeout(()=>{this.emit('connect')}, 1)
3435
}
3536

36-
debug('connection shim', this.conn.readyState)
37+
debugShim('connection shim', this.conn.readyState)
3738
}
3839

3940
close(){

0 commit comments

Comments
 (0)