Commit c8c761c6 authored by Sebastian Stark's avatar Sebastian Stark

print debug message on renaming

parent 29bd7516
......@@ -97,6 +97,7 @@ func (s *snapshot) transComplete(cl clock) {
}
s.endTime = etime
s.state = stateComplete
debugf("renaming complete snapshot %s -> %s", oldName, s.FullName())
err := os.Rename(oldName, s.FullName())
if err != nil {
log.Fatal(err)
......@@ -137,6 +138,7 @@ func (s *snapshot) transIncomplete(cl clock) {
s.endTime = time.Time{}
s.state = stateIncomplete
newName := s.FullName()
debugf("renaming incomplete snapshot %s -> %s", oldName, newName)
err := os.Rename(oldName, newName)
if err != nil {
log.Fatal(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment