Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Jan 17, 2021
1 parent fb11858 commit bed5c86
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions scouterx/conf/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,18 @@ func (conf *Configure) run() {
}

func getConfFilePath() string {
path := util.GetScouterPath()
confPath := filepath.Join(path, "conf")
util.MakeDir(confPath)
return filepath.Join(path, "conf", "scouter.conf")
scouterConfFile := os.Getenv("SCOUTER_CONFIG")
if scouterConfFile == "" {
scouterConfFile = os.Getenv("scouter.config")
}
if scouterConfFile == "" {
path := util.GetScouterPath()
confPath := filepath.Join(path, "conf")
util.MakeDir(confPath)
scouterConfFile = filepath.Join(path, "conf", "scouter.conf")
}

return scouterConfFile
}

func (conf *Configure) SetTrace(mode bool) {
Expand Down

0 comments on commit bed5c86

Please sign in to comment.