]> granicus.if.org Git - python/commitdiff
Issue #14622: Increased default timeout for SMTPHandler.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 22 Apr 2012 17:16:14 +0000 (18:16 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 22 Apr 2012 17:16:14 +0000 (18:16 +0100)
Lib/logging/handlers.py

index d0e14251e6d50361a0ee05fd0199d75a9c90fd5b..9c637974319c703c8883486802d5aac78ec7bc1d 100644 (file)
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
     A handler class which sends an SMTP email for each logging event.
     """
     def __init__(self, mailhost, fromaddr, toaddrs, subject,
-                 credentials=None, secure=None, timeout=1.0):
+                 credentials=None, secure=None, timeout=5.0):
         """
         Initialize the handler.