Mercurial > p > roundup > code
view roundup/anypy/my_input.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 | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
