New config field LogTarget. Simplified function backend.LogError.

This commit is contained in:
Kleissner
2022-01-12 22:18:34 +01:00
parent 5c8b8eb94b
commit 6a5312d834
17 changed files with 83 additions and 65 deletions

View File

@@ -59,7 +59,7 @@ func Init(UserAgent string, ConfigFilename string, Filters *Filters) (backend *B
backend.initBlockchainCache()
if backend.SearchIndex, err = search.InitSearchIndexStore(backend.Config.SearchIndex); err != nil {
backend.Filters.LogError("Init", "search index '%s' init: %s", backend.Config.SearchIndex, err.Error())
backend.LogError("Init", "search index '%s' init: %s", backend.Config.SearchIndex, err.Error())
} else {
backend.userBlockchainUpdateSearchIndex()
}