ÂTimingsCommand: include HTTP response code in debug message

we should probably show this in the regular response message, but we need new translations for that.
This commit is contained in:
Dylan K. Taylor 2023-04-14 15:40:52 +01:00
parent 10243c7b2c
commit 6fc4ce0f86
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -167,7 +167,7 @@ class TimingsCommand extends VanillaCommand{
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_timingsRead(
"https://" . $host . "/?id=" . $response["id"]));
}else{
$sender->getServer()->getLogger()->debug("Invalid response from timings server: " . $result->getBody());
$sender->getServer()->getLogger()->debug("Invalid response from timings server (" . $result->getCode() . "): " . $result->getBody());
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_pasteError());
}
}