Permalink
Browse files

debugging

git-svn-id: https://svn.thoughtbot.com/ldap-activerecord-gateway@21 bbed3248-5b21-0410-9248-c913b1c69bca
  • Loading branch information...
1 parent 3f2771f commit d18dd97289c1678ad2d13ce1c606236672885d2f tsaleh committed May 16, 2007
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/server.rb
View
@@ -70,10 +70,14 @@ def start
exit
end
- # This is to ensure thread-safety
- logger.debug "Setting allow_concurrency"
- ActiveRecord::Base.allow_concurrency = true
- logger.debug "done"
+ begin
+ # This is to ensure thread-safety
+ logger.debug "Setting allow_concurrency"
+ ActiveRecord::Base.allow_concurrency = true
+ rescue Exception => e
+ logger.info "Exception caught: #{e}"
+ exit
+ end
klass = nil
begin

0 comments on commit d18dd97

Please sign in to comment.