TimingsCommand: log the response body on failed paste

This commit is contained in:
Dylan K. Taylor 2023-04-06 14:46:02 +01:00
parent 4724195791
commit 734adec90d
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -167,6 +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());
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_pasteError());
}
}