Skip to content

Commit 66e0e26

Browse files
fixing_fetch_mode | Fixing issue of double comma (,,) in log
1 parent f3e9da3 commit 66e0e26

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/In.ProjectEKA.HipService/Link/LinkController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ public AcceptedResult OnFetchAuthMode(OnFetchAuthModeRequest request)
169169
{
170170
authModes += mode + ",";
171171
}
172-
172+
173+
authModes = authModes.Remove(authModes.Length - 1, 1);
173174
Log.Information($" Auth Purpose:{request.Auth.Purpose},");
174-
Log.Information($" Auth Modes:{authModes},");
175+
Log.Information($" Auth Modes:{authModes}.");
175176
}
177+
176178
Log.Information($" Resp RequestId:{request.Resp.RequestId}");
177179
return Accepted();
178180
}

src/In.ProjectEKA.HipService/User/UserController.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ public async Task OnAuthConfirmFor(JObject response)
5454
Log.Information($"Access Token is: {authOnConfirmResponse.Auth.AccessToken}");
5555
if (authOnConfirmResponse.Auth.Patient != null)
5656
{
57-
Log.Information("Patient Demographics Details: "+$" Name: {authOnConfirmResponse.Auth.Patient.Name},"+
57+
Log.Information("Patient Demographics Details: "+$" Name: {authOnConfirmResponse.Auth.Patient.Name}, "+
5858
$"Id: {authOnConfirmResponse.Auth.Patient.Id}, "+
59-
$"Birth Year: {authOnConfirmResponse.Auth.Patient.YearOfBirth}, "+
59+
$"Birth Year: {authOnConfirmResponse.Auth.Patient.YearOfBirth}, "+
6060
$"Gender: {authOnConfirmResponse.Auth.Patient.Gender}, ");
6161
if (authOnConfirmResponse.Auth.Patient.Address != null)
6262
{
6363
Log.Information("Patient Address Details: "+
64-
$" District: {authOnConfirmResponse.Auth.Patient.Address.District}, "+
65-
$" State: {authOnConfirmResponse.Auth.Patient.Address.State}, "+
66-
$" Line: {authOnConfirmResponse.Auth.Patient.Address.Line},"+
67-
$" Pincode: {authOnConfirmResponse.Auth.Patient.Address.PinCode}");
64+
$"District: {authOnConfirmResponse.Auth.Patient.Address.District}, "+
65+
$"State: {authOnConfirmResponse.Auth.Patient.Address.State}, "+
66+
$"Line: {authOnConfirmResponse.Auth.Patient.Address.Line}, "+
67+
$"Pincode: {authOnConfirmResponse.Auth.Patient.Address.PinCode}");
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)