Log with logrus with restraints on frequency of logging.
logrus_restraints.WithTTL(200 * time.Millisecond).
Infoln("this message will be logged not more often than every 200ms")
logrus_restraints.EveryN(5).Infoln("this message will be logged every 5 calls")