Get rid of var_export in logs
This has been bugging me since I first saw it. Dumping the whole object has no value at all, whats left should suffice.
This commit is contained in:
parent
7f00182913
commit
b36b1ea63c
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
||||||
public function addPlaceholder($podcastId, $episode) {
|
public function addPlaceholder($podcastId, $episode) {
|
||||||
$existingEpisode = PodcastEpisodesQuery::create()->findOneByDbEpisodeGuid($episode["guid"]);
|
$existingEpisode = PodcastEpisodesQuery::create()->findOneByDbEpisodeGuid($episode["guid"]);
|
||||||
if (!empty($existingEpisode)) {
|
if (!empty($existingEpisode)) {
|
||||||
throw new DuplicatePodcastEpisodeException("Episode already exists: \n" . var_export($episode, true));
|
throw new DuplicatePodcastEpisodeException(sprintf("Episode already exists for podcast: %s, guid: %s\n", $episode['podcast_id'], $episode['guid']));
|
||||||
}
|
}
|
||||||
// We need to check whether the array is parsed directly from the SimplePie
|
// We need to check whether the array is parsed directly from the SimplePie
|
||||||
// feed object, or whether it's passed in as json
|
// feed object, or whether it's passed in as json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue