Muqsit / Tebex

Tebex plugin for PocketMine-MP servers
https://poggit.pmmp.io/ci/Muqsit/Tebex
32 stars 6 forks source link

Handle HTTP and cURL errors #1

Closed Muqsit closed 3 years ago

Muqsit commented 3 years ago

cURL errors (such as timeouts) and unexpected HTTP response codes due to server side issues should be logged as debug messages.

2020-09-20 [01:42:25] [Server thread/CRITICAL]: muqsit\tebex\thread\TebexException: "Expected response code 200, got 502" (EXCEPTION) in "plugins/Tebex_v0.0.1.phar/src/muqsit/tebex/thread/TebexThread" at line 151
2020-09-20 [01:42:25] [Server thread/CRITICAL]: #0 (): muqsit\tebex\thread\TebexThread->run()
Muqsit commented 3 years ago

If logged as debug, production servers (i.e., the ones with pocketmine.yml -> debug.level < 2) won't have a clue about why the plugin is failing to work. Closing this as wont-fix.