func (l *Periodic) Debug(period time.Duration, msg string, ctx ...interface{}) {
    if time.Since(l.prevLogTime) > period {
        l.Log.Debug(msg, ctx...)
        l.prevLogTime = time.Now()
    }