fix for logging requests (writing raw data to log)