packer/rpc: a little more logging

This commit is contained in:
Mitchell Hashimoto 2014-01-01 21:53:57 -08:00
parent d5bf5d7f39
commit a7144d1025
1 changed files with 2 additions and 0 deletions

View File

@ -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