improve (log): cleanup log messages

This commit is contained in:
= 2019-04-15 15:41:38 +10:00
parent a17dd11ce6
commit 3eb8811e81

View file

@ -507,6 +507,9 @@ func(this *SearchIndexer) Discover(tx *sql.Tx) bool {
}
} else {
if err = this.dbInsert(doc.Path, f, tx); err != nil {
if e, ok := err.(sqlite3.Error); ok && e.Code == sqlite3.ErrConstraint {
return false
}
Log.Warning("search::insert index_error (%v)", err)
return false
}