Fix missing log class on API calls with errors.
This commit is contained in:
parent
0bb0d5df45
commit
f0fca2a681
4 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||||
* API now returns a useful error displaying what went wrong rather than an obscure 'An Error was Encountered' message when API issues arise.
|
* API now returns a useful error displaying what went wrong rather than an obscure 'An Error was Encountered' message when API issues arise.
|
||||||
* Fixes bug preventing the creation of new files in the file manager due to a missing JS dependency on page load.
|
* Fixes bug preventing the creation of new files in the file manager due to a missing JS dependency on page load.
|
||||||
* Prevent using a service option tag that contains special chaacters that are not valid. Now only allows alpha-numeric, no spaces or underscores.
|
* Prevent using a service option tag that contains special chaacters that are not valid. Now only allows alpha-numeric, no spaces or underscores.
|
||||||
|
* Fix unhandled excpetion due to missing `Log` class when using the API and causing an error.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Renamed session cookies from `laravel_session` to `pterodactyl_session`.
|
* Renamed session cookies from `laravel_session` to `pterodactyl_session`.
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
namespace Pterodactyl\Http\Controllers\API\Admin;
|
namespace Pterodactyl\Http\Controllers\API\Admin;
|
||||||
|
|
||||||
|
use Log;
|
||||||
use Fractal;
|
use Fractal;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Pterodactyl\Models\Node;
|
use Pterodactyl\Models\Node;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
namespace Pterodactyl\Http\Controllers\API\Admin;
|
namespace Pterodactyl\Http\Controllers\API\Admin;
|
||||||
|
|
||||||
|
use Log;
|
||||||
use Fractal;
|
use Fractal;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Pterodactyl\Models\Server;
|
use Pterodactyl\Models\Server;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
namespace Pterodactyl\Http\Controllers\API\Admin;
|
namespace Pterodactyl\Http\Controllers\API\Admin;
|
||||||
|
|
||||||
|
use Log;
|
||||||
use Fractal;
|
use Fractal;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Pterodactyl\Models\User;
|
use Pterodactyl\Models\User;
|
||||||
|
|
Loading…
Reference in a new issue