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