diff --git a/logs_http.api.php b/logs_http.api.php new file mode 100644 index 0000000..892c13e --- /dev/null +++ b/logs_http.api.php @@ -0,0 +1,19 @@ +alter('logs_http_event', $event); + + // If event does not want be sent, continue with the next one. + if (empty($event['send'])) { + continue; + } + + unset($event['send']); $client = \Drupal::httpClient(); try {