Adjust some log levels
This commit is contained in:
@@ -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",
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user