Skip to content

Commit 75999d7

Browse files
knopers8teo
authored andcommitted
[core] Fix missing env ID in a teardown log
1 parent 6cfc91f commit 75999d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@ func (m *RpcServer) DestroyEnvironment(cxt context.Context, req *pb.DestroyEnvir
695695
if env.CurrentState() == "CONFIGURED" {
696696
err = env.TryTransition(environment.MakeTransition(m.state.taskman, pb.ControlEnvironmentRequest_RESET))
697697
if err != nil {
698-
log.Warnf("cannot teardown environment in state %s, forcing", env.CurrentState())
698+
log.WithField("partition", env.Id().String()).
699+
Warnf("cannot teardown environment in state %s, forcing", env.CurrentState())
699700
return m.doTeardownAndCleanup(env, true /*force*/, false /*keepTasks*/)
700701
}
701702
}

0 commit comments

Comments
 (0)