Skip to content

Commit

Permalink
Log full error on state change API push fail
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Apr 20, 2024
1 parent 0a414c9 commit e669be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (s *Server) OnStateChange() {
s.Log().WithField("state_change", sc).Debug("pushing server status change to panel")
err := s.client.PushServerStateChange(context.Background(), s.ID(), sc)
if err != nil {
s.Log().Error("error pushing server status change to panel")
s.Log().WithField("error", err).Error("error pushing server status change to panel")
}

// Reset the resource usage to 0 when the process fully stops so that all the UI
Expand Down

0 comments on commit e669be3

Please sign in to comment.