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:
Lucas Bickel 2017-03-18 11:38:58 +01:00
parent 7f00182913
commit b36b1ea63c

View file

@ -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