You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a remote collector is down, I want to start Caddy anyway. I can see these logs in console. And I want to have working instance of Caddy while I will fix collector.
I think remote log collector could not be required dependency. In addition, when Caddy is already run and a collector is stopped, Caddy has not any fatal error and works in normal mode.
There's a big difference between starting a server knowing that something is broken, and keeping a running server running -- we do the latter at all costs, but the former, still seems like a bad idea to me. But I do understand how a remote dependency is not an ideal blocker for a web server. In v2 we eased up on requiring certificates to succeed before running (granted, if you try to access your site before Caddy can get a cert, you'll get an error) -- so maybe we can do something similar for logs...
I don't feel like it's a good default to ignore log errors since I bet many users rely on it, but we can change this later probably if it turns out to be the preferred default.
Simply add the soft_start parameter to your net config in the Caddyfile:
If network writer is unavailable, Caddy fails on start:
It would be better if it could start without network logger, than to fail.
The text was updated successfully, but these errors were encountered: