Skip to content

Commit

Permalink
fix error printout
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Aug 29, 2022
1 parent 5038d9b commit a48d96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbs/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,8 @@ func startMigrationRequest(req MigrationRequest) ([]MigrationReport, error) {
}
err = mrec.Insert(tx)
if err != nil {
msg = fmt.Sprintf("unable to insert MigrationBlocks record, error %v", err)
if utils.VERBOSE > 1 {
msg = fmt.Sprintf("%s unable to insert MigrationBlocks record %+v, error %v", mstr, mrec, err)
if utils.VERBOSE > 0 {
log.Println(msg)
}
return []MigrationReport{migrationReport(rec, msg, status, err)},
Expand Down

0 comments on commit a48d96a

Please sign in to comment.