saveTorrentChangesToDisk when relevant
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user