Permalink
Browse files

Fixed a couple of log messages

Change-Id: Ie53ef106537b4eb98d40143aeb61a907c50edeec
  • Loading branch information...
1 parent ec0b1f9 commit 2e25cb0face53400f5a5e763babf1eb47b830e1e @joeldsa joeldsa committed Oct 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cloud_controller/app/models/uaa_token.rb
@@ -44,6 +44,7 @@ def decode_token(auth_token)
@uaa_token_coder = CF::UAA::TokenCoder.new(AppConfig[:uaa][:resource_id],
AppConfig[:uaa][:token_secret],
@token_key[:value])
+ CloudController.logger.info("successfully fetched public key from the uaa")
end
rescue => e
self.token_key_fetch_failure_count = token_key_fetch_failure_count - 1
@@ -55,7 +56,7 @@ def decode_token(auth_token)
token_information = nil
begin
token_information = @uaa_token_coder.decode(auth_token)
- CloudController.logger.info("Token received from the UAA #{token_information.inspect}")
+ CloudController.logger.info("Decoded user token #{token_information.inspect}")
rescue => e
CloudController.logger.error("Invalid bearer token Message: #{e.message}")
end

0 comments on commit 2e25cb0

Please sign in to comment.