Add better logging to api/stream and api/transcode