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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user