lib/authpds-nyu/session/aleph.rb in authpds-nyu-0.2.12 vs lib/authpds-nyu/session/aleph.rb in authpds-nyu-0.2.13
- old
+ new
@@ -16,16 +16,16 @@
raise ArgumentError.new("Argument Error in #{self.class}. verification not specified.") if verification.nil?;
adm = aleph_default_adm if adm.nil?
sublibrary = aleph_default_sublibrary if sublibrary.nil?
# Call X-Service
bor_auth = Exlibris::Aleph::Xservice::BorAuth.new(aleph_url, adm, sublibrary, "N", bor_id, verification)
- log_error(bor_id, bor_auth) and return nil if bor_auth.nil? or bor_auth.error
+ log_error(bor_id, verification, bor_auth) and return nil if bor_auth.nil? or bor_auth.error
return bor_auth
end
-
- def log_error bor_id, bor_auth
+
+ def log_error bor_id, verification, bor_auth
controller.logger.error "Error in #{self.class}. "+
- "No permissions returned from Aleph bor-auth for user with bor_id #{bor_id}."+
+ "No permissions returned from Aleph bor-auth for user with bor_id #{bor_id} and verification #{verification}.\n"+
"Error: #{(bor_auth.nil?) ? "bor_auth is nil." : bor_auth.error.inspect}"
end
private :log_error
end
end
\ No newline at end of file