         @client.appendFromText @containerName, @blobName, chunk, (err, result) =>
           return @_retryIfNecessary(err, chunk, whenLoggedChunk) if err
           whenLoggedChunk()
-      , (err) -> 
+      , (err) ->
         debug "Error in block" if err
         __whenLogAllBlock()
 


class BlobTransport extends Transport

  constructor: ({account, @containerName, @blobName, @level = "info"}) ->
    @name = "BlobTransport"
    @cargo = @_buildCargo()
    @client = @_buildClient account

  log: (level, msg, meta, callback) =>
    line = @_formatLine {level, msg, meta}


  _buildCargo: =>
    async.cargo (tasks, __whenFinishCargo) =>
      __whenLogAllBlock = ->
        debug "Finish append all lines to blob"
        _.each tasks, ({callback}) -> callback null, true
        __whenFinishCargo()
