removing logging stuff
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
"log"
|
||||
|
||||
"github.com/captbrogers/MagicStreamServer/database"
|
||||
"github.com/captbrogers/MagicStreamServer/models"
|
||||
@@ -30,7 +29,6 @@ func GetMovies() gin.HandlerFunc {
|
||||
defer cursor.Close(ctx)
|
||||
|
||||
if err = cursor.All(ctx, &movies); err != nil {
|
||||
log.Fatalf("Failed to decode: %v", err)
|
||||
ginCtx.JSON(http.StatusInternalServerError, gin.H{"error": "failed to decode movies"})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user