Mercurial > p > roundup > code
view roundup/anypy/ssl_.py @ 7726:6f66d74d37f3
Add configurable logging for REST
We now log status code and error message for failing REST requests.
Introduces new config item rest_logging in section [web].
Fixes (part of) issue2551274.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 17 Jan 2024 17:07:23 +0100 |
| parents | 07ce4e4110f5 |
| children | d5d7ecd31864 |
line wrap: on
line source
try: # Python 3+ from ssl import SSLError except (ImportError, AttributeError): # Python 2.5-2.7 from socket import sslerror as SSLError # noqa: F401
