Skip to content

Commit

Permalink
use session-prefixing logger more consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jun 18, 2024
1 parent d5f361e commit ff453ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mixing/mixclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ func (c *Client) run(ctx context.Context, ps *pairedSessions, madePairing *bool)
return nil
})
if err != nil {
c.logf("%v", err)
sesLog.logf("%v", err)
}
if len(blamedMap) > 0 {
for id := range blamedMap {
Expand All @@ -1476,7 +1476,7 @@ func (c *Client) run(ctx context.Context, ps *pairedSessions, madePairing *bool)
return p.sr
})
if err != nil {
c.logf("%v", err)
sesLog.logf("%v", err)
}

// Receive all slot reservation messages
Expand Down Expand Up @@ -1565,7 +1565,7 @@ func (c *Client) run(ctx context.Context, ps *pairedSessions, madePairing *bool)
return p.dc
})
if err != nil {
c.logf("%v", err)
sesLog.logf("%v", err)
}

// Receive all DC messages
Expand Down Expand Up @@ -1654,7 +1654,7 @@ func (c *Client) run(ctx context.Context, ps *pairedSessions, madePairing *bool)
return p.cm
})
if err != nil {
c.logf("%v", err)
sesLog.logf("%v", err)
}

// Receive all CM messages
Expand Down Expand Up @@ -1770,7 +1770,7 @@ func (c *Client) roots(ctx context.Context, seenSRs []chainhash.Hash,
return p.fp
})
if ctx.Err() == nil && err != nil {
c.logf("%v", err)
c.logf("sid=%x %v", sesRun.sid[:], err)
}
publishedRoots <- struct{}{}
}()
Expand Down

0 comments on commit ff453ac

Please sign in to comment.