🎨 Cleanup code
This commit is contained in:
parent
1d84db7740
commit
d30e3b76b9
|
@ -157,8 +157,7 @@ func initUsers(confUsers string) {
|
||||||
initCustomizedConfs()
|
initCustomizedConfs()
|
||||||
}
|
}
|
||||||
|
|
||||||
func initWide(confPath, confIP, confPort, confServer, confLogLevel, confStaticServer, confContext, confChannel,
|
func initWide(confPath, confIP, confPort, confServer, confLogLevel, confStaticServer, confContext, confChannel, confPlayground string, confUsersWorkspaces string) {
|
||||||
confPlayground string, confUsersWorkspaces string) {
|
|
||||||
bytes, err := ioutil.ReadFile(confPath)
|
bytes, err := ioutil.ReadFile(confPath)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logger.Error(err)
|
logger.Error(err)
|
||||||
|
|
2
main.go
2
main.go
|
@ -66,6 +66,8 @@ func init() {
|
||||||
log.SetLevel("warn")
|
log.SetLevel("warn")
|
||||||
logger = log.NewLogger(os.Stdout)
|
logger = log.NewLogger(os.Stdout)
|
||||||
|
|
||||||
|
logger.Warn(confUsersWorkspaces)
|
||||||
|
|
||||||
//wd := util.OS.Pwd()
|
//wd := util.OS.Pwd()
|
||||||
//if strings.HasPrefix(wd, os.TempDir()) {
|
//if strings.HasPrefix(wd, os.TempDir()) {
|
||||||
// logger.Error("Don't run Wide in OS' temp directory or with `go run`")
|
// logger.Error("Don't run Wide in OS' temp directory or with `go run`")
|
||||||
|
|
Loading…
Reference in New Issue