Roundup Tracker - Issues

Message7935

Author schlatterbeck
Recipients Heiko, rouilj, schlatterbeck
Date 2024-01-17.16:16:03
Message-id <1705508163.53.0.982927115189.issue2551274@roundup.psfhosted.org>
In-reply-to
I've just pushed a first stab at this.

I would really like to also log the parameters of the REST call (maybe also configurable with an option). For a GET request this is typically a FieldStorage object while for POST or PUT it typically is a dictionary (serialized from JSON). For logging this it would require some serialization. I could live with a multi-line JSON object (serializing the dictionary for POST or PUT) but FieldStorage cannot currently be easily serialized (although serializing this to a nested dictionary should be doable).

Now since FieldStorage is already deprecated in python (going away in 3.13) we might introduce some replacement in the future? It might be nice if everything was a nested dictionary...

Oh and for file uploads and other huge objects we probably want to limit the amount being logged.
History
Date User Action Args
2024-01-17 16:16:03schlatterbecksetmessageid: <1705508163.53.0.982927115189.issue2551274@roundup.psfhosted.org>
2024-01-17 16:16:03schlatterbecksetrecipients: + schlatterbeck, rouilj, Heiko
2024-01-17 16:16:03schlatterbecklinkissue2551274 messages
2024-01-17 16:16:03schlatterbeckcreate