Skip to content

Commit

Permalink
Merge pull request #56 from srichter/add_logging_to_changed_items
Browse files Browse the repository at this point in the history
Add logging to Item Changes, Fix variable name in TVShowItemChanges
  • Loading branch information
vfalies authored Apr 29, 2021
2 parents 360ffd9 + 2b13897 commit 036225b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/VfacTmdb/Abstracts/Items/ItemChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function __construct(TmdbInterface $tmdb, string $item_type, int $item_id
$this->tmdb = $tmdb;
$this->logger = $tmdb->getLogger();

$this->logger->debug('Starting Item Changes', array('item_type' => $item_type, 'item_id' => $item_id, 'options' => $options));

$this->tmdb->checkOptionDateRange($options, $this->params);

$this->data = $this->tmdb->getRequest($item_type . '/' . $item_id . '/changes', $this->params);
Expand Down
6 changes: 3 additions & 3 deletions src/VfacTmdb/Items/TVShowItemChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class TVShowItemChanges extends ItemChanges
/**
* Constructor
* @param TmdbInterface $tmdb
* @param int $movie_id
* @param int $tv_id
* @param array $options
*/
public function __construct(TmdbInterface $tmdb, int $movie_id, array $options = array())
public function __construct(TmdbInterface $tmdb, int $tv_id, array $options = array())
{
try {
parent::__construct($tmdb, 'tv', $movie_id, $options);
parent::__construct($tmdb, 'tv', $tv_id, $options);
} catch (TmdbException $ex) {
throw $ex;
}
Expand Down

0 comments on commit 036225b

Please sign in to comment.