lib/gooddata/bricks/middleware/logger_middleware.rb in gooddata-0.6.50 vs lib/gooddata/bricks/middleware/logger_middleware.rb in gooddata-0.6.51

- old
+ new

@@ -15,12 +15,13 @@ params = params.to_hash logger = nil if params['GDC_LOGGING_OFF'] logger = NilLogger.new else - logger = params['GDC_LOGGER'] = params[:GDC_LOGGER_FILE].nil? ? Logger.new(STDOUT) : Logger.new(params[:GDC_LOGGER_FILE]) + logger = params[:GDC_LOGGER_FILE].nil? ? Logger.new(STDOUT) : Logger.new(params[:GDC_LOGGER_FILE]) logger.info('Pipeline starts') end + params['GDC_LOGGER'] = logger returning(@app.call(params)) do |_result| logger.info('Pipeline ending') end end end