From 946a46a76113911a66cc3efc122146a9956dfb10 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 3 Dec 2019 00:13:46 -0500 Subject: [PATCH] Log when data is sent successfully --- src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php | 3 --- src/Psalm/Plugin/Shepherd.php | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php b/src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php index 02bc6a593..41dbe74ba 100644 --- a/src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php +++ b/src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php @@ -269,9 +269,6 @@ class BuildInfoCollector /** @var array */ $event_data = \json_decode($event_json, true); - /** @psalm-suppress ForbiddenCode */ - var_dump($event_data); - if (isset($event_data['head_commit'])) { /** * @var array{ diff --git a/src/Psalm/Plugin/Shepherd.php b/src/Psalm/Plugin/Shepherd.php index ab3d0fcf6..1c5328200 100644 --- a/src/Psalm/Plugin/Shepherd.php +++ b/src/Psalm/Plugin/Shepherd.php @@ -112,6 +112,8 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface . var_export($build_info, true) . PHP_EOL; } + } else { + echo "Shepherd: Sent CI metadata to $base_address" . PHP_EOL; } // Close cURL session handle