From 20920c5d84d1c8fac6635e788834578e0b2baa29 Mon Sep 17 00:00:00 2001 From: Jonathan Flueren <11487762+JonOfUs@users.noreply.github.com> Date: Mon, 16 Aug 2021 14:20:21 +0200 Subject: [PATCH] Stop creating unnecessary log file in Nextcloud base folder EpisodeActionReader created (or appended to) file actionreader.log in Nextcloud base folder (with index.php & occ). This concluded in a Nextcloud warning about "additional files in Nextcloud folder" in the self-check feature. --- lib/Core/EpisodeAction/EpisodeActionReader.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Core/EpisodeAction/EpisodeActionReader.php b/lib/Core/EpisodeAction/EpisodeActionReader.php index b5e3db0..75a7a42 100644 --- a/lib/Core/EpisodeAction/EpisodeActionReader.php +++ b/lib/Core/EpisodeAction/EpisodeActionReader.php @@ -5,15 +5,12 @@ namespace OCA\GPodderSync\Core\EpisodeAction; class EpisodeActionReader { public function fromString(string $episodeActionString): EpisodeAction { - file_put_contents('actionreader.log', var_export($episodeActionString, true), FILE_APPEND); preg_match( '/\[EpisodeAction{(podcast=\')(?.*?)(\', episode=\')(?.*?)(\', action=)(?.*?)(, timestamp=)(?.*?)(, started=)(?.*?)(, position=)(?.*?)(, total=)(?.*?)}]*/', $episodeActionString, $matches ); - file_put_contents('actionreader.log', var_export($matches, true), FILE_APPEND); - return new EpisodeAction( $matches["podcast"], $matches["episode"],