1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Improve the readability of some log messages

This patch contains a few changes to logging messages, to improve log
readability.

While at it, an obsolete TODO in the SMTP courier is removed.
This commit is contained in:
Alberto Bertogli
2016-10-24 10:49:49 +01:00
parent 60a7932bd3
commit 1bc111f783
6 changed files with 41 additions and 45 deletions

View File

@@ -33,7 +33,7 @@ func New(dir string) (*DB, error) {
store: st,
info: map[string]*Domain{},
}
l.ev = trace.NewEventLog("DomainInfo", fmt.Sprintf("%p", l))
l.ev = trace.NewEventLog("DomainInfo", dir)
return l, nil
}
@@ -55,7 +55,7 @@ func (db *DB) Load() error {
db.info[d.Name] = d
}
db.ev.Debugf("loaded: %s", ids)
db.ev.Debugf("loaded %d domains", len(ids))
return nil
}