Skip to content

Commit

Permalink
Mode debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Dec 2, 2019
1 parent 0eea49d commit 19e1e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/therealproxy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Client struct {
func NewClient(conn net.Conn) (*Client, error) {
session, err := yamux.Client(conn, nil)
if err != nil {
return nil, fmt.Errorf("yamux: %s", err)
return nil, fmt.Errorf("error creating client: yamux: %s", err)
}

return &Client{session: session}, nil
Expand All @@ -48,7 +48,7 @@ func (c *Client) ListenAndServe(addr string) error {

stream, err = c.session.Open()
if err != nil {
return fmt.Errorf("yamux: %s", err)
return fmt.Errorf("error on `ListenAndServe`: yamux: %s", err)
}

go func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/therealproxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *Server) Serve(l net.Listener) error {

session, err := yamux.Server(conn, nil)
if err != nil {
return fmt.Errorf("yamux: %s", err)
return fmt.Errorf("error in `Serve`: yamux: %s", err)
}

go func() {
Expand Down

0 comments on commit 19e1e2a

Please sign in to comment.