mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix: miscofigured logging statements (#7721)
This commit is contained in:
parent
6e0f83b99e
commit
45e2ed3d86
4 changed files with 5 additions and 6 deletions
|
@ -2,6 +2,7 @@ package migrator
|
|||
|
||||
import (
|
||||
portainer "github.com/portainer/portainer/api"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func (m *Migrator) migrateDBVersionToDB70() error {
|
||||
|
@ -13,7 +14,7 @@ func (m *Migrator) migrateDBVersionToDB70() error {
|
|||
|
||||
for _, endpoint := range endpoints {
|
||||
// copy snapshots to new object
|
||||
migrateLog.Info("- moving snapshots from endpoint to new object")
|
||||
log.Info().Msg("moving snapshots from endpoint to new object")
|
||||
snapshot := portainer.Snapshot{EndpointID: endpoint.ID}
|
||||
|
||||
if len(endpoint.Snapshots) > 0 {
|
||||
|
@ -31,7 +32,7 @@ func (m *Migrator) migrateDBVersionToDB70() error {
|
|||
}
|
||||
|
||||
// set to nil old fields
|
||||
migrateLog.Info("- deleting snapshot from endpoint")
|
||||
log.Info().Msg("deleting snapshot from endpoint")
|
||||
endpoint.Snapshots = []portainer.DockerSnapshot{}
|
||||
endpoint.Kubernetes.Snapshots = []portainer.KubernetesSnapshot{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue