refactor logging
This commit is contained in:
parent
3877268508
commit
a0c1e6845e
@ -103,6 +103,7 @@ func (bw *ChromeBrowser) Watch() bool {
|
||||
if !bw.isWatching {
|
||||
go WatcherThread(bw)
|
||||
bw.isWatching = true
|
||||
log.Infof("<%s> watching changes", bw.name)
|
||||
return true
|
||||
}
|
||||
|
||||
|
3
db.go
3
db.go
@ -562,7 +562,7 @@ func initDB() {
|
||||
if err != nil {
|
||||
log.Warning(err)
|
||||
}
|
||||
log.Debugf("localdb exists, preloading to cache")
|
||||
log.Infof("<%s> exists, preloading to cache", dbpath)
|
||||
CacheDB.SyncFromDisk(dbpath)
|
||||
//CacheDB.Print()
|
||||
} else {
|
||||
@ -580,7 +580,6 @@ func initDB() {
|
||||
func initLocalDB(db *DB, dbpath string) {
|
||||
|
||||
log.Infof("Initializing local db at '%s'", dbpath)
|
||||
log.Debugf("%s flushing to disk", db.Name)
|
||||
err := db.SyncToDisk(dbpath)
|
||||
if err != nil {
|
||||
log.Critical(err)
|
||||
|
Loading…
Reference in New Issue
Block a user