mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Use base64 instead of hex to display binary in some places
base64 takes less space than hex, which is beneficial for logging larger payloads.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace pocketmine\network\query;
|
||||
use pocketmine\network\AdvancedSourceInterface;
|
||||
use pocketmine\Server;
|
||||
use pocketmine\utils\Binary;
|
||||
use function bin2hex;
|
||||
use function base64_encode;
|
||||
use function chr;
|
||||
use function hash;
|
||||
use function microtime;
|
||||
@@ -134,7 +134,7 @@ class QueryHandler{
|
||||
$interface->sendRawPacket($address, $port, $reply);
|
||||
break;
|
||||
default:
|
||||
$this->debug("Unhandled packet from $address $port: 0x" . bin2hex($packet));
|
||||
$this->debug("Unhandled packet from $address $port: " . base64_encode($packet));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user