diff --git a/app.go b/app.go index 3427e6aa4..09f00f3de 100644 --- a/app.go +++ b/app.go @@ -53,7 +53,7 @@ func CreateApp(optionalConfig ...*AppConfig) *App { result.config = appconfig // Set up the CLI if not in release mode - if BuildMode != BuildModeProd { + if BuildMode != cmd.BuildModeProd { result.cli = result.setupCli() } else { // Disable Inspector in release mode @@ -65,7 +65,7 @@ func CreateApp(optionalConfig ...*AppConfig) *App { // Run the app func (a *App) Run() error { - if BuildMode != BuildModeProd { + if BuildMode != cmd.BuildModeProd { return a.cli.Run() } @@ -82,7 +82,7 @@ func (a *App) start() error { a.log.Info("Starting") // Check if we are to run in headless mode - if BuildMode == BuildModeBridge { + if BuildMode == cmd.BuildModeBridge { a.renderer = &Headless{} } diff --git a/renderer_headless.go b/renderer_headless.go index bb873f584..bd0cc6873 100644 --- a/renderer_headless.go +++ b/renderer_headless.go @@ -95,7 +95,7 @@ func (h *Headless) wsBridgeHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, "Could not open websocket connection", http.StatusBadRequest) } h.theConnection = conn - h.log.Infof("Connection from frontend accepted.", h.theConnection) + h.log.Infof("Connection from frontend accepted [%p].", h.theConnection) conn.SetCloseHandler(func(int, string) error { h.log.Infof("Connection dropped [%p].", h.theConnection) h.theConnection = nil