Skip to content

Commit

Permalink
Set correct logger in VideoInfo and Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Dec 7, 2018
1 parent 6295393 commit 2212857
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Set correct `Psr\Log\LoggerAwareInterface` into `YoutubeDownloader\Provider\Youtube\VideoInfo` in `YoutubeDownloader\Provider\Youtube\Provider`
- Set correct `Psr\Log\LoggerAwareInterface` into `YoutubeDownloader\Provider\Youtube\Format` in `YoutubeDownloader\Provider\Youtube\VideoInfo`

## [0.8] - 2018-12-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Youtube/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function provide($input)
$video_info->setHttpClient($this->getHttpClient());
}

if ($video_info instanceof LoggerAware) {
if ($video_info instanceof LoggerAwareInterface) {
$video_info->setLogger($this->getLogger());
}

Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Youtube/VideoInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private function parseFormats(array $format_array, array $config)
$format->setHttpClient($this->getHttpClient());
}

if ($format instanceof LoggerAware) {
if ($format instanceof LoggerAwareInterface) {
$format->setLogger($this->getLogger());
}

Expand Down

0 comments on commit 2212857

Please sign in to comment.