Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit b0727f4

Browse files
committed
Tweak volume state move logs
1 parent 2950fec commit b0727f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/pkg/lifecycle/brickmanager/bricks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func watchForVolumeChanges(poolRegistry registry.PoolRegistry, volumeRegistry re
9696
}
9797

9898
if new.State != old.State {
99+
log.Printf("volume:%s state move: %s -> %s", new.Name, old.State, new.State)
99100
switch new.State {
100101
case registry.DataInRequested:
101102
processDataIn(volumeRegistry, *new)
@@ -107,7 +108,7 @@ func watchForVolumeChanges(poolRegistry registry.PoolRegistry, volumeRegistry re
107108
log.Println("Volume", new.Name, "has had bricks deleted.")
108109
default:
109110
// Ignore the state changes we triggered
110-
log.Printf("ignore volume:%s state move: %s -> %s", new.Name, old.State, new.State)
111+
log.Printf("ignore volume state move %+v", change)
111112
}
112113
}
113114

0 commit comments

Comments
 (0)