Skip to content

Commit

Permalink
Changed to string interpolation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansligh-nimbus committed Sep 24, 2024
1 parent 52bc6a6 commit e40a6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task<string> MakeRequestAsync(BidRequest bidRequest) {
#else
// This will throw an exception if the bid request is missing required data from Nimbus
var body = JsonConvert.SerializeObject(bidRequest);
Debug.unityLogger.Log("Nimbus", "BID REQUEST: " + body);
Debug.unityLogger.Log("Nimbus", $"BID REQUEST: {body}");
HttpContent jsonBody = new StringContent(body, Encoding.UTF8, "application/json");
var serverResponse = await Client.PostAsync(_nimbusEndpoint, jsonBody, _ctx.Token);
if (_ctx.Token.IsCancellationRequested) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ await Task.Run(async () => {
_adEvents.FireOnAdErrorEvent(this);
return;
}
Debug.unityLogger.Log("Nimbus","BID RESPONSE: " + response);
Debug.unityLogger.Log("Nimbus",$"BID RESPONSE: {response}");
_adWasReturned = true;
RawBidResponse = response;
BidResponse = JsonConvert.DeserializeObject<BidResponse>(response);
Expand Down

0 comments on commit e40a6f5

Please sign in to comment.