The database logger should be set by its creator
This commit is contained in:
parent
b1c3573e8f
commit
bdca32c50d
@ -23,7 +23,6 @@ func (r *Registrar) Record(products ...string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Registrar) SetLogger(logger tacitus.Logger) {
|
func (r *Registrar) SetLogger(logger tacitus.Logger) {
|
||||||
r.Database.SetLogger(logger)
|
|
||||||
r.Listener.SetLogger(logger)
|
r.Listener.SetLogger(logger)
|
||||||
r.logger = logger
|
r.logger = logger
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user