lib/gooddata/bricks/middleware/logger_middleware.rb in gooddata-0.6.0.pre10 vs lib/gooddata/bricks/middleware/logger_middleware.rb in gooddata-0.6.0.pre11

- old
+ new

@@ -1,13 +1,14 @@ require 'logger' +require File.join(File.dirname(__FILE__), "base_middleware") + module GoodData::Bricks class LoggerMiddleware < GoodData::Bricks::Middleware def call(params) - logger = params[:gdc_logger] = params[:GDC_LOGGER_FILE].nil? ? Logger.new(STDOUT) : Logger.new(params[:GDC_LOGGER_FILE]) + logger = params["GDC_LOGGER"] = params[:GDC_LOGGER_FILE].nil? ? Logger.new(STDOUT) : Logger.new(params[:GDC_LOGGER_FILE]) logger.info("Pipeline starts") - returning(@app.call(params)) do |result| logger.info("Pipeline ending") end end \ No newline at end of file