We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6114b9f commit d3490adCopy full SHA for d3490ad
1 file changed
src/Component.php
@@ -300,6 +300,7 @@ private function getGoogleRestApi(): RestApi
300
{
301
$serviceAccount = $this->getConfig()->getServiceAccount();
302
if ($serviceAccount) {
303
+ $this->getLogger()->info('Login with service account', $serviceAccount['client_email']);
304
$client = RestApi::createWithServiceAccount(
305
$serviceAccount,
306
[
@@ -308,6 +309,7 @@ private function getGoogleRestApi(): RestApi
308
309
$this->getLogger(),
310
);
311
} else {
312
+ $this->getLogger()->info('Login with OAuth');
313
/** @var array{access_token?: string, refresh_token?: string}|null $tokenData */
314
$tokenData = json_decode($this->getConfig()->getOAuthApiData(), true);
315
if (!isset($tokenData['access_token'], $tokenData['refresh_token'])) {
0 commit comments