Those patches were made when implementing the access log for the API requests, but as that needs still a bit work regarding log-rotation (and I'm a bit slow as I've to jump to another thing every 10 minutes or so) , I sent out the rather independent stuff first.