diff --git a/CHANGELOG.md b/CHANGELOG.md index c5859e1b6..9fbfd37a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. * 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. +* Fix unhandled excpetion due to missing `Log` class when using the API and causing an error. ### Changed * Renamed session cookies from `laravel_session` to `pterodactyl_session`. diff --git a/app/Http/Controllers/API/Admin/NodeController.php b/app/Http/Controllers/API/Admin/NodeController.php index d70e89969..74784fdb6 100644 --- a/app/Http/Controllers/API/Admin/NodeController.php +++ b/app/Http/Controllers/API/Admin/NodeController.php @@ -24,6 +24,7 @@ namespace Pterodactyl\Http\Controllers\API\Admin; +use Log; use Fractal; use Illuminate\Http\Request; use Pterodactyl\Models\Node; diff --git a/app/Http/Controllers/API/Admin/ServerController.php b/app/Http/Controllers/API/Admin/ServerController.php index 75bcdc107..28cb40641 100644 --- a/app/Http/Controllers/API/Admin/ServerController.php +++ b/app/Http/Controllers/API/Admin/ServerController.php @@ -24,6 +24,7 @@ namespace Pterodactyl\Http\Controllers\API\Admin; +use Log; use Fractal; use Illuminate\Http\Request; use Pterodactyl\Models\Server; diff --git a/app/Http/Controllers/API/Admin/UserController.php b/app/Http/Controllers/API/Admin/UserController.php index 150ca4f87..c94fe8090 100644 --- a/app/Http/Controllers/API/Admin/UserController.php +++ b/app/Http/Controllers/API/Admin/UserController.php @@ -24,6 +24,7 @@ namespace Pterodactyl\Http\Controllers\API\Admin; +use Log; use Fractal; use Illuminate\Http\Request; use Pterodactyl\Models\User;