Skip to content

Commit

Permalink
Removed list of records from insert error (#60)
Browse files Browse the repository at this point in the history
* Removed list of records from insert error

* [skip ci] updated changelog
  • Loading branch information
kristinapathak authored Apr 26, 2019
1 parent 1133270 commit bc5dbec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.4.2]
- Changed test structure
- Added defaults to replace invalid config values
- Removed list of events from insert error

## [v0.4.1]
- fixed cipher yaml loading

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

[Unreleased]: https://github.com/Comcast/codex/compare/v0.4.1..HEAD
[Unreleased]: https://github.com/Comcast/codex/compare/v0.4.2..HEAD
[v0.4.2]: https://github.com/Comcast/codex/compare/v0.4.1...v0.4.2
[v0.4.1]: https://github.com/Comcast/codex/compare/v0.4.0...v0.4.1
[v0.4.0]: https://github.com/Comcast/codex/compare/v0.3.3...v0.4.0
[v0.3.3]: https://github.com/Comcast/codex/compare/v0.3.2...v0.3.3
Expand Down
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (db *Connection) InsertRecords(records ...Record) error {
err := db.mutliInsert.insert(records)
if err != nil {
db.measures.SQLQueryFailureCount.With(typeLabel, insertType).Add(1.0)
return emperror.WrapWith(err, "Inserting records failed", "records", records)
return emperror.Wrap(err, "Inserting records failed")
}
db.measures.SQLQuerySuccessCount.With(typeLabel, insertType).Add(1.0)
return nil
Expand Down

0 comments on commit bc5dbec

Please sign in to comment.