packer/rpc: a little more logging
This commit is contained in:
parent
d5bf5d7f39
commit
a7144d1025
|
@ -146,6 +146,8 @@ func (m *MuxConn) Accept(id uint32) (io.ReadWriteCloser, error) {
|
||||||
// Dial opens a connection to the remote end using the given stream ID.
|
// Dial opens a connection to the remote end using the given stream ID.
|
||||||
// An Accept on the remote end will only work with if the IDs match.
|
// An Accept on the remote end will only work with if the IDs match.
|
||||||
func (m *MuxConn) Dial(id uint32) (io.ReadWriteCloser, error) {
|
func (m *MuxConn) Dial(id uint32) (io.ReadWriteCloser, error) {
|
||||||
|
log.Printf("[TRACE] %p: Dial on stream ID: %d", m, id)
|
||||||
|
|
||||||
m.muDial.Lock()
|
m.muDial.Lock()
|
||||||
|
|
||||||
// If we have any streams with this ID, then it is a failure. The
|
// If we have any streams with this ID, then it is a failure. The
|
||||||
|
|
Loading…
Reference in New Issue