Sha256: 8ff70bb9852eb46ebfb75a272af5faa30a677748652944dbb49746f50e89c197

Contents?: true

Size: 393 Bytes

Versions: 21

Compression:

Stored size: 393 Bytes

Contents

module Evrone
  module CI
    module Worker

      LogJob = Struct.new(:app) do

        include Helper::Logger

        def call(env)
          logger.tagged("job #{env.job.message.id}.#{env.job.message.job_id}") do
            logger.info "starting job"
            rs = app.call env
            logger.info "done job"
            rs
          end
        end

      end
    end
  end
end


Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre28 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre27 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre26 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre25 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre24 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre23 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre22 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre21 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre20 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre19 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre18 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre17 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre15 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre14 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre13 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre12 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre11 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre10 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre9 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre8 lib/evrone/ci/worker/middlewares/log_job.rb