musikr: remove pipeline logs

This commit is contained in:
Alexander Capehart 2025-02-24 07:54:12 -07:00
parent 582b0c6eef
commit 50e2dde6e2
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -18,7 +18,6 @@
package org.oxycblt.musikr.pipeline package org.oxycblt.musikr.pipeline
import android.util.Log
import org.oxycblt.musikr.fs.DeviceFile import org.oxycblt.musikr.fs.DeviceFile
import org.oxycblt.musikr.playlist.PlaylistFile import org.oxycblt.musikr.playlist.PlaylistFile
import org.oxycblt.musikr.playlist.interpret.PrePlaylist import org.oxycblt.musikr.playlist.interpret.PrePlaylist
@ -55,45 +54,35 @@ sealed interface WhileProcessing {
internal suspend fun <R> wrap(file: DeviceFile, block: suspend (DeviceFile) -> R): R = internal suspend fun <R> wrap(file: DeviceFile, block: suspend (DeviceFile) -> R): R =
try { try {
Log.d("wrap", "Processing DeviceFile ${file.path}")
block(file) block(file)
} catch (e: Exception) { } catch (e: Exception) {
Log.e("wrap", "Error while processing DeviceFile ${file.path}", e)
throw PipelineException(WhileProcessing.AFile(file), e) throw PipelineException(WhileProcessing.AFile(file), e)
} }
internal suspend fun <R> wrap(song: RawSong, block: suspend (RawSong) -> R): R = internal suspend fun <R> wrap(song: RawSong, block: suspend (RawSong) -> R): R =
try { try {
Log.d("wrap", "Processing RawSong ${song.file.path}")
block(song) block(song)
} catch (e: Exception) { } catch (e: Exception) {
Log.e("wrap", "Error while processing RawSong ${song.file.path}", e)
throw PipelineException(WhileProcessing.ARawSong(song), e) throw PipelineException(WhileProcessing.ARawSong(song), e)
} }
internal suspend fun <R> wrap(file: PlaylistFile, block: suspend (PlaylistFile) -> R): R = internal suspend fun <R> wrap(file: PlaylistFile, block: suspend (PlaylistFile) -> R): R =
try { try {
Log.d("wrap", "Processing PlaylistFile ${file.name}")
block(file) block(file)
} catch (e: Exception) { } catch (e: Exception) {
Log.e("wrap", "Error while processing PlaylistFile ${file.name}", e)
throw PipelineException(WhileProcessing.APlaylistFile(file), e) throw PipelineException(WhileProcessing.APlaylistFile(file), e)
} }
internal suspend fun <R> wrap(song: PreSong, block: suspend (PreSong) -> R): R = internal suspend fun <R> wrap(song: PreSong, block: suspend (PreSong) -> R): R =
try { try {
Log.d("wrap", "Processing PreSong ${song.path}")
block(song) block(song)
} catch (e: Exception) { } catch (e: Exception) {
Log.e("wrap", "Error while processing PreSong ${song.path}", e)
throw PipelineException(WhileProcessing.APreSong(song), e) throw PipelineException(WhileProcessing.APreSong(song), e)
} }
internal suspend fun <R> wrap(playlist: PrePlaylist, block: suspend (PrePlaylist) -> R): R = internal suspend fun <R> wrap(playlist: PrePlaylist, block: suspend (PrePlaylist) -> R): R =
try { try {
Log.d("wrap", "Processing PrePlaylist ${playlist.name}")
block(playlist) block(playlist)
} catch (e: Exception) { } catch (e: Exception) {
Log.e("wrap", "Error while processing PrePlaylist ${playlist.name}", e)
throw PipelineException(WhileProcessing.APrePlaylist(playlist), e) throw PipelineException(WhileProcessing.APrePlaylist(playlist), e)
} }