From e5beba97616fcbc12d85934a5d9579b50c3ac746 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 21 May 2023 13:46:31 +0200 Subject: use llog instead of log --- spotify.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spotify.go') diff --git a/spotify.go b/spotify.go index 951bbd9..c07bad9 100644 --- a/spotify.go +++ b/spotify.go @@ -10,7 +10,6 @@ package main import ( "errors" "fmt" - "log" "os" "strings" @@ -18,6 +17,8 @@ import ( "github.com/librespot-org/librespot-golang/librespot" "github.com/librespot-org/librespot-golang/librespot/core" "github.com/librespot-org/librespot-golang/librespot/utils" + + "muhq.space/go/wrms/llog" ) const ( @@ -74,7 +75,7 @@ func (spotify *SpotifyBackend) Play(song *Song, player *Player) { // Synchronously load the track audioFile, err := session.Player().LoadTrack(selectedFile, track.GetGid()) if err != nil { - log.Fatal(fmt.Sprintf("Error while loading track: %s\n", err)) + llog.Fatal("Error while loading track: %s\n", err) } player.PlayData(audioFile) -- cgit v1.2.3