From ad0cbae5ae701da9faf399224b5da69cb600eb77 Mon Sep 17 00:00:00 2001 From: Sarthak160 Date: Mon, 10 Jun 2024 10:45:10 +0000 Subject: [PATCH] refactor: add log for copyfail message Signed-off-by: Sarthak160 --- copy_fail.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copy_fail.go b/copy_fail.go index 0515414..61c6047 100644 --- a/copy_fail.go +++ b/copy_fail.go @@ -3,6 +3,7 @@ package pgproto3 import ( "bytes" "encoding/json" + "fmt" "github.com/jackc/pgio" ) @@ -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 }