Skip to content

Commit ee0f61f

Browse files
committed
feat(helper): log error on cbcopy_helper exit
Previously, when the cbcopy_helper encountered an error, it would exit with an error code but would not log the specific error message. This made debugging difficult as there was no clear indication of what went wrong.
1 parent b8776c1 commit ee0f61f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cbcopy_helper.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import (
66
"os"
77

88
"github.com/cloudberrydb/cbcopy/helper"
9+
"github.com/greenplum-db/gp-common-go-libs/gplog"
910
)
1011

1112
func main() {
1213
helper := helper.NewHelper(helper.NewConfig())
1314
if err := helper.Run(); err != nil {
15+
gplog.Error("cbcopy_helper exited with error: %v", err)
1416
os.Exit(helper.GetErrCode())
1517
}
1618

0 commit comments

Comments
 (0)