Permalink
Browse files

Fix string concatenation in error logging

  • Loading branch information...
1 parent 8433c7e commit 29dbae85d83e3457c99f14269d1930aed3c510b2 @jystewart jystewart committed Jan 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/controllers/artefacts_controller.rb
@@ -3,7 +3,7 @@ class ArtefactsController < ApplicationController
before_filter :find_artefact, :only => [:show, :edit, :update]
before_filter :build_artefact, :only => [:new, :create]
before_filter :mark_removed_records_for_destruction, :only => :update
-
+
respond_to :html, :json
def index
@@ -29,7 +29,7 @@ def create
location += '?return_to=' + params[:return_to] if params[:return_to]
respond_with @artefact, location: location
rescue => e
- logger.info(e + " " + e.backtrace.join("\n"))
+ logger.info("#{e} #{e.backtrace.join("\n")}")
raise
end
@@ -62,7 +62,7 @@ def build_artefact
logger.info(e + " " + e.backtrace.join("\n"))
raise
end
-
+
# TODO: Convert this to a presenter
def mark_removed_records_for_destruction

0 comments on commit 29dbae8

Please sign in to comment.