Skip to content

Commit

Permalink
refactor: add log for copyfail message
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>
  • Loading branch information
Sarthak160 committed Jun 10, 2024
1 parent 9ce3393 commit ad0cbae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion copy_fail.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pgproto3
import (
"bytes"
"encoding/json"
"fmt"

"github.com/jackc/pgio"
)
Expand All @@ -24,7 +25,7 @@ func (dst *CopyFail) Decode(src []byte) error {
}

dst.Message = string(src[:idx])

fmt.Println("Error message of CopyFail.Decode: ", dst.Message)
return nil
}

Expand Down

0 comments on commit ad0cbae

Please sign in to comment.