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

- old
+ new

@@ -16,12 +16,15 @@ logger = nil if params['GDC_LOGGING_OFF'] logger = NilLogger.new else logger = params[:GDC_LOGGER_FILE].nil? ? Logger.new(STDOUT) : Logger.new(params[:GDC_LOGGER_FILE]) + logger.level = params['GDC_LOG_LEVEL'] if params['GDC_LOG_LEVEL'] logger.info('Pipeline starts') end params['GDC_LOGGER'] = logger + GoodData.logging_http_on if params['HTTP_LOGGING'] && params['HTTP_LOGGING'].to_b + returning(@app.call(params)) do |_result| logger.info('Pipeline ending') end end end