Add logging for micropub media requests as well.

This commit is contained in:
Jonny Barnes 2017-07-12 19:00:48 +01:00
parent ffc87a3b32
commit 084c1154bb

View file

@ -375,6 +375,9 @@ class MicropubController extends Controller
], 400);
}
$logger = new Logger('micropub');
$logger->pushHandler(new StreamHandler(storage_path('logs/micropub.log')), Logger::DEBUG);
$logger->debug('MicropubMediaLog', $request->all());
//check post scope
if ($tokenData->hasClaim('scope')) {
if (stristr($tokenData->getClaim('scope'), 'create') === false) {