@@ -102,7 +102,7 @@ private JsonNode getFENCEUserProfile(String access_token) {
102
102
List <Header > headers = new ArrayList <>();
103
103
headers .add (new BasicHeader ("Authorization" , "Bearer " + access_token ));
104
104
105
- logger .debug ("getFENCEUserProfile() getting user profile from uri:" + JAXRSConfiguration . idp_provider_uri + " /user/user" );
105
+ logger .debug ("getFENCEUserProfile() getting user profile from uri:{} /user/user" , JAXRSConfiguration . idp_provider_uri );
106
106
JsonNode fence_user_profile_response = HttpClientUtil .simpleGet (
107
107
JAXRSConfiguration .idp_provider_uri +"/user/user" ,
108
108
JAXRSConfiguration .client ,
@@ -182,6 +182,8 @@ public Response getFENCEProfile(String callback_url, Map<String, String> authReq
182
182
"from the Gen3 authentication provider." +ex .getMessage ());
183
183
}
184
184
185
+ // Time performance of user login.
186
+ long startTime = System .currentTimeMillis ();
185
187
User current_user = null ;
186
188
try {
187
189
// Create or retrieve the user profile from our database, based on the the key
@@ -235,6 +237,8 @@ public Response getFENCEProfile(String callback_url, Map<String, String> authReq
235
237
logger .info ("LOGIN SUCCESS ___ " + current_user .getEmail () + ":" + current_user .getUuid ().toString () + ":" + current_user .getSubject () + " ___ Authorization will expire at ___ " + responseMap .get ("expirationDate" ) + "___" );
236
238
logger .debug ("getFENCEProfile() UserProfile response object has been generated" );
237
239
logger .debug ("getFENCEToken() finished" );
240
+
241
+ System .out .println ("User login took: " + (System .currentTimeMillis () - startTime ) + "ms" );
238
242
return PICSUREResponse .success (responseMap );
239
243
}
240
244
0 commit comments