mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
improve (log): cleanup log messages
This commit is contained in:
parent
a17dd11ce6
commit
3eb8811e81
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue