go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.44k stars 985 forks source link

Suppress "no renewal" message on renew #2214

Closed Sxderp closed 1 week ago

Sxderp commented 1 week ago

Welcome

How do you use lego?

Binary

Detailed Description

The certificate expires in 89 days, the number of days defined to perform the renewal is 30: no renewal.

When running via a cron job or other situation where output causes alerts it's nice to avoid "informational" outputs. It seems this message is printed to "stderr" so I can't just redirect it, otherwise I'd miss errors. As far as I can tell there's no way to natively suppress this output.

ldez commented 1 week ago

Duplicate of #1531