 
         count = @_counter++
 
+        pdebug = (msg,args...) ->
+            debug "#{count}: #{msg}", args...
+
         # If the preroll request can't be made in 5 seconds or less,
         # abort the preroll.
         # TODO: Make the timeout wait configurable
         prerollTimeout = setTimeout(=>
             @stream.log.debug "preroll request timeout. Aborting.", count
+            pdebug "Hit timeout. Triggering abort."
             req.abort()
             aborted = true
             detach new Error("Preroll request timed out.")

            .replace("!UA!", encodeURIComponent(client.ua))
            .replace("!UUID!", client.session_id)

        debug "Ad request URI is #{uri}"

        # -- make a request to the ad server -- #


                                                    if err
                                                        @stream.log.error "Failed to hit impression URL #{obj.impressionURL}: #{err}"
                                                    else
                                                        pdebug "Impression URL hit successfully."
                                            else
                                                @stream.log.debug "Session reached preroll impression criteria, but no impression URL present."
                                                pdebug "No impression URL found."
                                else
                                    err = new Error "Non-200 response from transcoder."
                                    pdebug err
                                    detach err
                            .once "error", (err) =>
                                pdebug "Transcoder request error: #{err}"
                                detach err

                    else
