feat: make watchdog itself configurable

This commit is contained in:
DaanSelen
2026-04-22 16:29:07 +02:00
parent ec3a996d6a
commit fa832bd1e0
12 changed files with 59 additions and 53 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
package api
import (
"eden-server/internal/database"
"eden-server/internal/utility"
"errors"
"log/slog"
"net/http"
"orbits-server/internal/database"
"orbits-server/internal/utility"
"path/filepath"
"github.com/gin-gonic/gin"
@@ -35,7 +35,7 @@ func spawnFileRoutes(file *gin.RouterGroup, env utility.Environment, db *gorm.DB
readerStream, err := f.Open()
if err != nil {
slog.Error("failed to open uploaded file in memory")
slog.Error("failed to a reader stream")
}
defer readerStream.Close()