saveTorrentChangesToDisk when relevant

This commit is contained in:
Ben Sarmiento
2024-01-27 16:32:50 +01:00
parent 582af81ea8
commit b44f2a4b63
6 changed files with 33 additions and 38 deletions

View File

@@ -20,6 +20,7 @@ import (
"github.com/debridmediamanager/zurg/pkg/utils"
"github.com/go-chi/chi/v5"
"github.com/panjf2000/ants/v2"
"go.uber.org/zap/zapcore"
)
func MainApp(configPath string) {
@@ -28,6 +29,10 @@ func MainApp(configPath string) {
log := logutil.NewLogger(logPath)
zurglog := log.Named("zurg")
if log.Level() == zapcore.DebugLevel {
zurglog.Infof("debug logging is enabled; if you are not debugging please set LOG_LEVEL=info in your environment")
}
zurglog.Debugf("PID: %d", os.Getpid())
zurglog.Infof("Version: %s", version.GetVersion())
zurglog.Infof("GitCommit: %s", version.GetGitCommit())