Add logging for micropub media requests as well.
This commit is contained in:
parent
ffc87a3b32
commit
084c1154bb
1 changed files with 3 additions and 0 deletions
|
@ -375,6 +375,9 @@ class MicropubController extends Controller
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$logger = new Logger('micropub');
|
||||||
|
$logger->pushHandler(new StreamHandler(storage_path('logs/micropub.log')), Logger::DEBUG);
|
||||||
|
$logger->debug('MicropubMediaLog', $request->all());
|
||||||
//check post scope
|
//check post scope
|
||||||
if ($tokenData->hasClaim('scope')) {
|
if ($tokenData->hasClaim('scope')) {
|
||||||
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
|
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue