diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-05-21 13:46:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-05-21 13:46:59 +0200 |
| commit | e5beba97616fcbc12d85934a5d9579b50c3ac746 (patch) | |
| tree | 035c3787b5be3cc5163c7b7764fb477fc10f5a87 | |
| parent | e19307db172df51099dc5a69467737ac876e58f0 (diff) | |
| download | WRMS-e5beba97616fcbc12d85934a5d9579b50c3ac746.tar.gz WRMS-e5beba97616fcbc12d85934a5d9579b50c3ac746.zip | |
use llog instead of log
| -rw-r--r-- | spotify.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |
