Adjust some log levels

This commit is contained in:
Carl Pearson
2024-10-04 05:23:35 -06:00
parent 91ed7cbc0d
commit e5b76f7b0a
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ func initLogger() {
log = logrus.New()
log.SetOutput(os.Stdout)
log.SetLevel(logrus.InfoLevel)
log.SetLevel(logrus.DebugLevel)
log.SetFormatter(&logrus.TextFormatter{
FullTimestamp: true,
TimestampFormat: "2006-01-02 15:04:05",

View File

@@ -214,7 +214,7 @@ func audioToAudio(transID uint, kbps uint, srcFilepath string) {
}
func transcodePending() {
log.Debugln("transcodePending...")
log.Traceln("transcodePending...")
// any running jobs here got stuck or dead in the midde, so reset them
db.Model(&Transcode{}).Where("status = ?", "running").Update("status", "pending")
@@ -257,7 +257,7 @@ func transcodePending() {
"ELSE 1 END").First(&trans).Error
// err := db.First(&trans, "status = ?", "pending").Error
if err == gorm.ErrRecordNotFound {
log.Debugln("no pending transcode jobs")
log.Traceln("no pending transcode jobs")
break // no more pending jobs
}