🎨 Cleanup code

This commit is contained in:
Liang Ding 2019-05-16 11:44:07 +08:00
parent 1d84db7740
commit d30e3b76b9
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 3 additions and 2 deletions

View File

@ -157,8 +157,7 @@ func initUsers(confUsers string) {
initCustomizedConfs()
}
func initWide(confPath, confIP, confPort, confServer, confLogLevel, confStaticServer, confContext, confChannel,
confPlayground string, confUsersWorkspaces string) {
func initWide(confPath, confIP, confPort, confServer, confLogLevel, confStaticServer, confContext, confChannel, confPlayground string, confUsersWorkspaces string) {
bytes, err := ioutil.ReadFile(confPath)
if nil != err {
logger.Error(err)

View File

@ -66,6 +66,8 @@ func init() {
log.SetLevel("warn")
logger = log.NewLogger(os.Stdout)
logger.Warn(confUsersWorkspaces)
//wd := util.OS.Pwd()
//if strings.HasPrefix(wd, os.TempDir()) {
// logger.Error("Don't run Wide in OS' temp directory or with `go run`")