Skip to content

Commit

Permalink
psql: add debug message for duplicate layers
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Mar 8, 2016
1 parent 7bea9cb commit 363cde2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions database/pgsql/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ func (pgSQL *pgSQL) InsertLayer(layer database.Layer) error {

if isErrUniqueViolation(err) {
// Ignore this error, another process collided.
log.Debug("Attempted to insert duplicate layer.")
return nil
}
return handleError("insertLayer", err)
Expand Down

0 comments on commit 363cde2

Please sign in to comment.