debug log
This commit is contained in:
parent
eda81e05b3
commit
dbe3bad547
@ -510,6 +510,7 @@ func (f *Firefox) addURLNode(url, title, desc string) (bool, *tree.Node) {
|
||||
// returns the created tagNode
|
||||
func (f *Firefox) addTagNode(tagName string) (bool, *tree.Node) {
|
||||
// Check if "tags" branch exists or create it
|
||||
log.Debugf("<%s> adding tag <%s>", f.fullId(), tagName)
|
||||
var branchOk bool
|
||||
var tagsBranch *tree.Node
|
||||
for _, c := range f.NodeTree.Children {
|
||||
|
@ -70,7 +70,6 @@ func (m *Manager) Run() {
|
||||
log.Info("Starting manager ...")
|
||||
|
||||
for unitName, w := range m.workers {
|
||||
log.Debugf("---> %p", w)
|
||||
log.Infof("Starting <%s>\n", unitName)
|
||||
go w.unit.Run(w)
|
||||
}
|
||||
@ -169,8 +168,7 @@ func (m *Manager) AddUnit(unit WorkUnit, name string) {
|
||||
unitID := idGenerator(unitName)
|
||||
unitName = fmt.Sprintf("%s#%d]", unitName, unitID)
|
||||
|
||||
log.Info("Adding unit ", unitName)
|
||||
|
||||
log.Debug("Adding unit ", unitName)
|
||||
m.workers[unitName] = workUnitManager
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ func (w WatcherWork) Run(m manager.UnitManager) {
|
||||
watcher.isWatching = true
|
||||
|
||||
for _, watch := range watcher.Watches{
|
||||
log.Infof("Watching %s", watch.Path)
|
||||
log.Debugf("Watching %s", watch.Path)
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ func WatchLoop(w WatchRunner) {
|
||||
|
||||
watcher := w.Watch()
|
||||
beat := time.NewTicker(1 * time.Second).C
|
||||
log.Infof("<%s> Started watcher", watcher.ID)
|
||||
log.Debugf("<%s> Started watcher", watcher.ID)
|
||||
watchloop:
|
||||
for {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user