Apparently, if the firewall blocks outgoing SMTP connections, Gunicorn
sees the worker time out and kills it. Nothing is written to the local
logs.
Is there a way to specify the order of log handlers, or possibly just
require the ones requiring a remote connection go last?
Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/26228>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Is there a problem if the value of
[https://docs.djangoproject.com/en/stable/ref/settings/#email-timeout
settings.EMAIL_TIMEOUT] is less than the value of Gunicorn's timeout?
I don't understand what change you're proposing.
--
Ticket URL: <https://code.djangoproject.com/ticket/26228#comment:1>
* status: new => closed
* resolution: => needsinfo
--
Ticket URL: <https://code.djangoproject.com/ticket/26228#comment:2>
Comment (by ryanfox):
Replying to [comment:1 timgraham]:
> Is there a problem if the value of
[https://docs.djangoproject.com/en/stable/ref/settings/#email-timeout
settings.EMAIL_TIMEOUT] is less than the value of Gunicorn's timeout?
>
> I don't understand what change you're proposing.
I wasn't aware of that setting. At any rate, I was just wondering if it
would be possible to log to the unlikely-to-fail handlers (e.g. writing to
file) before logging to the possible-to-fail handlers (e.g. email). If
this isn't feasible, I guess there's nothing to be done for it, but I
thought it may be nice to safeguard against the contingency.
--
Ticket URL: <https://code.djangoproject.com/ticket/26228#comment:3>