removed bad fatal log
This commit is contained in:
@@ -2,6 +2,7 @@ package handlers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@@ -9,6 +10,8 @@ import (
|
|||||||
func (store *Store) ListeningTo(c *gin.Context) {
|
func (store *Store) ListeningTo(c *gin.Context) {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
log.Default().Println("Tets")
|
||||||
|
|
||||||
playing, err := store.SpotifyClient.PlayerCurrentlyPlaying(ctx)
|
playing, err := store.SpotifyClient.PlayerCurrentlyPlaying(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(500, gin.H{"error": err.Error()})
|
c.JSON(500, gin.H{"error": err.Error()})
|
||||||
|
|||||||
Reference in New Issue
Block a user