made logging work with POST requests