mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-27 04:07:28 +00:00
cmd: Better error handling when reloading (#6601)
* caddyhttp: Limit auto-HTTPS error logs to 100 domains * Improve error message and increase error size limit
This commit is contained in:
parent
9b4acc2449
commit
c8adb1b553
3 changed files with 6 additions and 2 deletions
|
|
@ -732,7 +732,7 @@ func (app *App) automaticHTTPSPhase2() error {
|
|||
)
|
||||
err := app.tlsApp.Manage(app.allCertDomains)
|
||||
if err != nil {
|
||||
return fmt.Errorf("managing certificates for %v: %s", app.allCertDomains, err)
|
||||
return fmt.Errorf("managing certificates for %d domains: %s", len(app.allCertDomains), err)
|
||||
}
|
||||
app.allCertDomains = nil // no longer needed; allow GC to deallocate
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue