X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/7e150bd2cb754453f09df7cb6976976db3fcf63e..c6fd5d2f91a31c5014c2d40276b8d4ef771fb9a9:/src/shpub/Command/Connect.php diff --git a/src/shpub/Command/Connect.php b/src/shpub/Command/Connect.php index 668d7e9..2fd6d38 100644 --- a/src/shpub/Command/Connect.php +++ b/src/shpub/Command/Connect.php @@ -36,9 +36,10 @@ class Command_Connect list($redirect_uri, $socketStr) = $this->getHttpServerData(); $state = time(); - echo "To authenticate, open the following URL:\n" + Log::msg( + "To authenticate, open the following URL:\n" . $this->getBrowserAuthUrl($host, $user, $redirect_uri, $state) - . "\n"; + ); $authParams = $this->startHttpServer($socketStr); if ($authParams['state'] != $state) { @@ -72,7 +73,7 @@ class Command_Connect } $this->cfg->hosts[$hostKey] = $host; $this->cfg->save(); - echo "Server configuration $hostKey saved successfully.\n"; + Log::info("Server configuration $hostKey saved successfully."); } protected function fetchAccessToken(