Skip to content

Commit

Permalink
remove some more logging + add null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Oct 1, 2024
1 parent 377bdfd commit 431f37d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ private void ModifyDateTimeParam(List<string> paramNames, HttpMessage message)
// Transform to ISO 8601 format (e.g., "2024-09-09T20:46:14")
query[param] = dateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ");
queryModified = true;
_logger.LogWarning("Modified {param} to modify parameters to be value {Value}", param, dateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"));
}
}
if (queryModified) {
if (queryModified)
{
message.Request.Uri.Query = query.ToString();
} else {
}
else
{
_logger.LogWarning("Failed to modify parameters {Parms}", string.Join("and ", paramNames));
}
}
Expand Down

0 comments on commit 431f37d

Please sign in to comment.