removed duplicate logging statement
This commit is contained in:
@ -39,7 +39,6 @@ class ProxyExercise < ActiveRecord::Base
|
|||||||
Rails.logger.debug("find new matching exercise for user #{user.id}" )
|
Rails.logger.debug("find new matching exercise for user #{user.id}" )
|
||||||
matching_exercise =
|
matching_exercise =
|
||||||
begin
|
begin
|
||||||
Rails.logger.debug("find new matching exercise for user #{user.id}" )
|
|
||||||
find_matching_exercise(user)
|
find_matching_exercise(user)
|
||||||
rescue => e #fallback
|
rescue => e #fallback
|
||||||
Rails.logger.error("finding matching exercise failed. Fall back to random exercise! Error: #{$!}" )
|
Rails.logger.error("finding matching exercise failed. Fall back to random exercise! Error: #{$!}" )
|
||||||
|
Reference in New Issue
Block a user