Minor - add logs

pull/3564/head
Julio Montoya 5 years ago
parent f6acf8c1db
commit 231afc0337
  1. 7
      plugin/zoom/endpoint.php

@ -11,16 +11,15 @@ use Symfony\Component\HttpFoundation\Response;
require_once __DIR__.'/config.php';
if ('POST' !== $_SERVER['REQUEST_METHOD']) {
http_response_code(Response::HTTP_NOT_FOUND); // Not found
http_response_code(Response::HTTP_NOT_FOUND);
exit;
}
// @todo handle non-apache installations
$authorizationHeaderValue = apache_request_headers()['Authorization'];
if (api_get_plugin_setting('zoom', 'verificationToken') !== $authorizationHeaderValue) {
error_log('verificationToken not valid, please check your zoom configuration');
http_response_code(Response::HTTP_UNAUTHORIZED);
exit;
}
@ -141,8 +140,6 @@ switch ($objectType) {
$meeting->addActivity($activity);
$em->persist($meeting);
$em->flush();
//error_log(sprintf('Event "%s" on %s was unhandled: %s', $action, $objectType, $body));
//http_response_code(501); // Not Implemented
break;
}
break;

Loading…
Cancel
Save