scheduler: disable verbose logs

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-02-21 18:18:24 +01:00
parent 2c1319985d
commit fcf9a8c673
6 changed files with 64 additions and 63 deletions

View File

@@ -1128,7 +1128,7 @@ type sftpConnectionsCache struct {
func newSFTPConnectionCache() *sftpConnectionsCache {
c := &sftpConnectionsCache{
scheduler: cron.New(),
scheduler: cron.New(cron.WithLocation(time.UTC), cron.WithLogger(cron.DiscardLogger)),
items: make(map[uint64]*sftpConnection),
}
_, err := c.scheduler.AddFunc("@every 1m", c.Cleanup)