amacneil / amacneil/dbmate

"Applied:" is logged when migration fails

Đang mở
#670 7 bình luận 2 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
Go
Star
7.4k
Fork
379
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
1

Mô tả

**Description**

If a migration results in an error, then log output still contains "Applied:" prior to the error.

https://github.com/amacneil/dbmate/blob/fb55683a63f1990a610c798619966576320c5844/pkg/dbmate/db.go#L410-L414

Is this intentional? I would expect "Applied:" to be logged only if everything succeeded and the version record was inserted.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.