fix(migration): add more debug logging

This commit is contained in:
kolaente 2025-01-20 12:08:10 +01:00
parent ee10525b66
commit 0e37049343
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,7 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
}
err = tb.Update(s, user)
if err != nil {
log.Debugf("[creating structure] Error while updating task bucket %d for task %d: %s", bucketID, task.ID, err.Error())
return
}
} else if bucketID > 0 {
@ -331,6 +332,7 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
rt.ProjectID = t.ProjectID
err = rt.Create(s, user)
if err != nil {
log.Debugf("[creating structure] Error while creating related task %d: %s", rt.ID, err.Error())
return
}
err = setBucketOrDefault(rt)