python-caldav / caldav

Apache License 2.0
317 stars 94 forks source link

Mini-framework for getting out the caldav communication #248

Closed tobixen closed 3 months ago

tobixen commented 1 year ago

When debugging compatibility issues it's nice to get hands on some communication logs. When reporting compatibility issues upstream, it's nice to be able to generate communication logs that can be forwarded as-is. While we're currently having some debug logging in place for this, I feel it may be a bit too complicated to get things out through the logging framework - particularly if the caldav library is used by some other product which is controlling the logging - and also, multi-line content can be problematic in logs.

My idea is to check some debug environment variables, if those are found it will dump communication logs to some file on disk.

Potential security implications should be considered.

tobixen commented 1 year ago

Code is ready and is used by me every now and then while debugging - but are there security implications with this? Anyone have any thoughts on it?

tobixen commented 3 months ago

This has been merged into master branch, so I will close the issue