Better debug output
This commit is contained in:
parent
189289ad5f
commit
536038967a
1
http.go
1
http.go
|
@ -454,6 +454,7 @@ func (rt *Router) routeCreateServer(w http.ResponseWriter, r *http.Request, ps h
|
||||||
// Begin the installation process in the background to not block the request
|
// Begin the installation process in the background to not block the request
|
||||||
// cycle. If there are any errors they will be logged and communicated back
|
// cycle. If there are any errors they will be logged and communicated back
|
||||||
// to the Panel where a reinstall may take place.
|
// to the Panel where a reinstall may take place.
|
||||||
|
zap.S().Infow("beginning installation process for server", zap.String("server", inst.Uuid()))
|
||||||
go inst.Execute()
|
go inst.Execute()
|
||||||
|
|
||||||
w.WriteHeader(http.StatusAccepted)
|
w.WriteHeader(http.StatusAccepted)
|
||||||
|
|
|
@ -102,13 +102,13 @@ func (i *Installer) Server() *server.Server {
|
||||||
// associated installation process based on the parameters passed through for
|
// associated installation process based on the parameters passed through for
|
||||||
// the server instance.
|
// the server instance.
|
||||||
func (i *Installer) Execute() {
|
func (i *Installer) Execute() {
|
||||||
zap.S().Debugw("beginning installation process for server", zap.String("server", i.server.Uuid))
|
zap.S().Debugw("creating required environment for server instance", zap.String("server", i.Uuid()))
|
||||||
|
|
||||||
zap.S().Debugw("creating required environment for server instance", zap.String("server", i.server.Uuid))
|
|
||||||
if err := i.server.Environment.Create(); err != nil {
|
if err := i.server.Environment.Create(); err != nil {
|
||||||
zap.S().Errorw("failed to create environment for server", zap.String("server", i.server.Uuid), zap.Error(err))
|
zap.S().Errorw("failed to create environment for server", zap.String("server", i.Uuid()), zap.Error(err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zap.S().Debugw("created environment for server during install process", zap.String("server", i.Uuid()))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a string value from the JSON data provided.
|
// Returns a string value from the JSON data provided.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user