Skip to content

Commit 58c5ed8

Browse files
committed
print correct status code
1 parent 7911d53 commit 58c5ed8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/gameanalytics/GAHTTPApi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ namespace gameanalytics
373373
// if not 200 result
374374
if (statusCode != HTTP_RESPONSE_OK && statusCode != HTTP_RESPONSE_NO_CONTENT)
375375
{
376-
logging::GALogger::d("sdk error failed. response code not 200 or 204. status code: %u", CURLE_OK);
376+
logging::GALogger::d("sdk error failed. response code not 200 or 204. status code: %u", statusCode);
377377
return;
378378
}
379379

@@ -465,7 +465,7 @@ namespace gameanalytics
465465
return Unauthorized;
466466
}
467467

468-
if (statusCode == 400)
468+
if (statusCode == HTTP_RESPONSE_BAD_REQUEST)
469469
{
470470
logging::GALogger::d("%s request. 400 - Bad Request.", requestId);
471471
return BadRequest;

0 commit comments

Comments
 (0)