mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-24 20:04:28 +00:00
TimingsCommand: log the response body on failed paste
This commit is contained in:
parent
4724195791
commit
734adec90d
@ -167,6 +167,7 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_timingsRead(
|
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_timingsRead(
|
||||||
"https://" . $host . "/?id=" . $response["id"]));
|
"https://" . $host . "/?id=" . $response["id"]));
|
||||||
}else{
|
}else{
|
||||||
|
$sender->getServer()->getLogger()->debug("Invalid response from timings server: " . $result->getBody());
|
||||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_pasteError());
|
Command::broadcastCommandMessage($sender, KnownTranslationFactory::pocketmine_command_timings_pasteError());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user