From fdd11ce83ed5ce5e11b588b63d9f25e2c9e6be0a Mon Sep 17 00:00:00 2001 From: Godwin Date: Wed, 16 Sep 2015 17:20:30 -0700 Subject: [PATCH] Error message and backtrace for stats.xls --- app/controllers/conferences_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index e45ac7f..a9f7f40 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -485,9 +485,9 @@ class ConferencesController < ApplicationController :other => r.other || '' } end - rescue - logger.info "Error adding row to stats.xls" - logger.info "\t#{r ? r.to_yaml.to_s : 'nil'}" + rescue => error + logger.info "Error adding row to stats.xls: #{error.message}" + logger.info error.backtrace end end end