diff --git a/app/code/Magento/Integration/Model/Oauth/Token/Provider.php b/app/code/Magento/Integration/Model/Oauth/Token/Provider.php index a1b5747e67696..b33786dacb484 100644 --- a/app/code/Magento/Integration/Model/Oauth/Token/Provider.php +++ b/app/code/Magento/Integration/Model/Oauth/Token/Provider.php @@ -33,7 +33,7 @@ class Provider implements TokenProviderInterface protected $_date; /** - * @var \Magento\Framework\Logger + * @var \Psr\Log\LoggerInterface */ protected $logger; @@ -42,14 +42,14 @@ class Provider implements TokenProviderInterface * @param \Magento\Integration\Model\Oauth\TokenFactory $tokenFactory * @param \Magento\Integration\Helper\Oauth\Data $dataHelper * @param \Magento\Framework\Stdlib\DateTime\DateTime $date - * @param \Magento\Framework\Logger $logger + * @param \Psr\Log\LoggerInterface $logger */ public function __construct( \Magento\Integration\Model\Oauth\Consumer\Factory $consumerFactory, \Magento\Integration\Model\Oauth\TokenFactory $tokenFactory, \Magento\Integration\Helper\Oauth\Data $dataHelper, \Magento\Framework\Stdlib\DateTime\DateTime $date, - \Magento\Framework\Logger $logger + \Psr\Log\LoggerInterface $logger ) { $this->_consumerFactory = $consumerFactory; $this->_tokenFactory = $tokenFactory; @@ -128,7 +128,7 @@ public function getAccessToken($consumer) ); } $accessToken = $token->convertToAccess(); - $this->logger->log( + $this->logger->info( 'Request token ' . $token->getToken() . ' was exchanged to obtain access token for consumer ' . $consumerId ); return ['oauth_token' => $accessToken->getToken(), 'oauth_token_secret' => $accessToken->getSecret()]; diff --git a/dev/tests/unit/testsuite/Magento/Integration/Oauth/OauthTest.php b/dev/tests/unit/testsuite/Magento/Integration/Oauth/OauthTest.php index f5e9f654e9ff2..67a17c1ddd5f5 100644 --- a/dev/tests/unit/testsuite/Magento/Integration/Oauth/OauthTest.php +++ b/dev/tests/unit/testsuite/Magento/Integration/Oauth/OauthTest.php @@ -41,7 +41,7 @@ class OauthTest extends \PHPUnit_Framework_TestCase private $_dateMock; /** - * @var \Magento\Framework\Logger + * @var \Psr\Log\LoggerInterface */ private $_loggerMock; @@ -118,7 +118,7 @@ public function setUp() $this->_dateMock = $this->getMockBuilder('Magento\Framework\Stdlib\DateTime\DateTime') ->disableOriginalConstructor() ->getMock(); - $this->_loggerMock = $this->getMockBuilder('Magento\Framework\Logger') + $this->_loggerMock = $this->getMockBuilder('Psr\Log\LoggerInterface') ->disableOriginalConstructor() ->getMock();