Skip to content

Commit bc5dbec

Browse files
Removed list of records from insert error (#60)
* Removed list of records from insert error * [skip ci] updated changelog
1 parent 1133270 commit bc5dbec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [v0.4.2]
10+
- Changed test structure
11+
- Added defaults to replace invalid config values
12+
- Removed list of events from insert error
13+
914
## [v0.4.1]
1015
- fixed cipher yaml loading
1116

@@ -98,7 +103,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
98103
- Initial creation
99104
- Created `db` and `xvault` package
100105

101-
[Unreleased]: https://github.com/Comcast/codex/compare/v0.4.1..HEAD
106+
[Unreleased]: https://github.com/Comcast/codex/compare/v0.4.2..HEAD
107+
[v0.4.2]: https://github.com/Comcast/codex/compare/v0.4.1...v0.4.2
102108
[v0.4.1]: https://github.com/Comcast/codex/compare/v0.4.0...v0.4.1
103109
[v0.4.0]: https://github.com/Comcast/codex/compare/v0.3.3...v0.4.0
104110
[v0.3.3]: https://github.com/Comcast/codex/compare/v0.3.2...v0.3.3

db/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func (db *Connection) InsertRecords(records ...Record) error {
314314
err := db.mutliInsert.insert(records)
315315
if err != nil {
316316
db.measures.SQLQueryFailureCount.With(typeLabel, insertType).Add(1.0)
317-
return emperror.WrapWith(err, "Inserting records failed", "records", records)
317+
return emperror.Wrap(err, "Inserting records failed")
318318
}
319319
db.measures.SQLQuerySuccessCount.With(typeLabel, insertType).Add(1.0)
320320
return nil

0 commit comments

Comments
 (0)