Skip to content

Commit f0fca2a

Browse files
committed
Fix missing log class on API calls with errors.
1 parent 0bb0d5d commit f0fca2a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010
* API now returns a useful error displaying what went wrong rather than an obscure 'An Error was Encountered' message when API issues arise.
1111
* Fixes bug preventing the creation of new files in the file manager due to a missing JS dependency on page load.
1212
* Prevent using a service option tag that contains special chaacters that are not valid. Now only allows alpha-numeric, no spaces or underscores.
13+
* Fix unhandled excpetion due to missing `Log` class when using the API and causing an error.
1314

1415
### Changed
1516
* Renamed session cookies from `laravel_session` to `pterodactyl_session`.

app/Http/Controllers/API/Admin/NodeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
namespace Pterodactyl\Http\Controllers\API\Admin;
2626

27+
use Log;
2728
use Fractal;
2829
use Illuminate\Http\Request;
2930
use Pterodactyl\Models\Node;

app/Http/Controllers/API/Admin/ServerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
namespace Pterodactyl\Http\Controllers\API\Admin;
2626

27+
use Log;
2728
use Fractal;
2829
use Illuminate\Http\Request;
2930
use Pterodactyl\Models\Server;

app/Http/Controllers/API/Admin/UserController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
namespace Pterodactyl\Http\Controllers\API\Admin;
2626

27+
use Log;
2728
use Fractal;
2829
use Illuminate\Http\Request;
2930
use Pterodactyl\Models\User;

0 commit comments

Comments
 (0)