Skip to content

Commit

Permalink
formatting for performance logging. #386
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 16, 2020
1 parent 28b194c commit fd37004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def index
clients = total > 0 ? facet_by_client(response.response.aggregations.clients.buckets) : nil
affiliations = total > 0 ? facet_by_affiliation(response.response.aggregations.affiliations.buckets) : nil
}
logger.warn "[Benchmark Warning] aggregations " + bma.to_s + " ms"
logger.warn "[Benchmark] aggregations " + bma.to_s + " ms"

@dois = response.results

Expand Down Expand Up @@ -134,7 +134,7 @@ def show
render json: WorkSerializer.new(@doi, options).serialized_json, status: :ok
}
logger = Logger.new(STDOUT)
logger.warn "[Benchmark] render single" + bmj.to_s + " ms"
logger.warn "[Benchmark] render single #{@doi.doi} " + bmj.to_s + " ms"
end

protected
Expand All @@ -147,7 +147,7 @@ def set_doi
@doi = response.results.first
}
logger = Logger.new(STDOUT)
logger.warn "[Benchmark] request single " + bmd.to_s + " ms"
logger.warn "[Benchmark] request single #{@doi.doi} " + bmd.to_s + " ms"

fail ActiveRecord::RecordNotFound unless @doi.present?
end
Expand Down

0 comments on commit fd37004

Please sign in to comment.