diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 35a0bc9f8..6663ba5da 100644 --- a/kernel/api/workspace.go +++ b/kernel/api/workspace.go @@ -238,18 +238,13 @@ func getWorkspaces(c *gin.Context) { model.RoleAdministrator, }) { ret.Data = []*Workspace{} - logging.LogInfof("non-admin user tried to get workspaces") return } - logging.LogInfof("workspace paths [%+v]", workspacePaths) - var workspaces, openedWorkspaces, closedWorkspaces []*Workspace for _, p := range workspacePaths { - logging.LogInfof("get workspace [%s]", p) closed := !util.IsWorkspaceLocked(p) if closed { - logging.LogInfof("workspace [%s] is closed", p) closedWorkspaces = append(closedWorkspaces, &Workspace{Path: p, Closed: closed}) } else { openedWorkspaces = append(openedWorkspaces, &Workspace{Path: p, Closed: closed}) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 89630aaa8..29ef45f38 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -750,7 +750,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) { } util.HttpServing = false - if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container { + if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container { return }