mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(migrations): add more logging EE-2071 (#6141)
* add stacktrace when recovering a panic * add logging to the migrations * use string format * add context around why we return stacktrace
This commit is contained in:
parent
2555dfc78b
commit
d091b343b9
12 changed files with 33 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
|||
package migrator
|
||||
|
||||
import "github.com/portainer/portainer/api"
|
||||
import portainer "github.com/portainer/portainer/api"
|
||||
|
||||
func (m *Migrator) updateTagsToDBVersion23() error {
|
||||
migrateLog.Info("Updating tags")
|
||||
tags, err := m.tagService.Tags()
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -20,6 +21,7 @@ func (m *Migrator) updateTagsToDBVersion23() error {
|
|||
}
|
||||
|
||||
func (m *Migrator) updateEndpointsAndEndpointGroupsToDBVersion23() error {
|
||||
migrateLog.Info("Updating endpoints and endpoint groups")
|
||||
tags, err := m.tagService.Tags()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue