From b164cada3cdaabfa598a912e483f80fd0d9ea287 Mon Sep 17 00:00:00 2001 From: JungJun Date: Mon, 11 Jul 2022 10:42:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icsconf/icsconf.go | 2 +- icslog/icslog.go | 2 +- icssvc/icssvc.go | 2 +- voiceagentCheck/voiceagentCheck.go | 4 ++-- voicebot.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/icsconf/icsconf.go b/icsconf/icsconf.go index cf3fdbf..4e057f4 100644 --- a/icsconf/icsconf.go +++ b/icsconf/icsconf.go @@ -10,7 +10,7 @@ import ( ) type IcsConfig struct { - XMLName xml.Name `xml:"ICSVA"` + XMLName xml.Name `xml:"ICSVB"` Version string `xml:"version,attr"` InfoConfig InfoConfig `xml:"INFO"` LicenseConfig LicenseConfig `xml:"LICENSE"` diff --git a/icslog/icslog.go b/icslog/icslog.go index ec75f35..8fd110e 100644 --- a/icslog/icslog.go +++ b/icslog/icslog.go @@ -130,7 +130,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk //make log file - icssoe.log-yyyymmdd yyyy, mm, dd := gIcsLog.CurrentDate.Date() - gIcsLog.LogFileName = fmt.Sprintf("%s/icsva.log-%d%02d%02d", gIcsLog.Path, yyyy, mm, dd) + gIcsLog.LogFileName = fmt.Sprintf("%s/icsbot.log-%d%02d%02d", gIcsLog.Path, yyyy, mm, dd) stat, err := os.Stat(gIcsLog.LogFileName) if err == nil { diff --git a/icssvc/icssvc.go b/icssvc/icssvc.go index b39e3e3..e781aa9 100644 --- a/icssvc/icssvc.go +++ b/icssvc/icssvc.go @@ -197,7 +197,7 @@ func (s IcsService) LogWatcher() *icserror.IcsError { fmt.Println(m2) fmt.Println(d2) */ - s.log.LogFileName = fmt.Sprintf("%s/icsva.log-%d%02d%02d", s.log.Path, y2, m2, d2) + s.log.LogFileName = fmt.Sprintf("%s/icsbot.log-%d%02d%02d", s.log.Path, y2, m2, d2) var oerr error s.log.LogFile, oerr = os.OpenFile(s.log.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) if oerr != nil { diff --git a/voiceagentCheck/voiceagentCheck.go b/voiceagentCheck/voiceagentCheck.go index 1dd4e0a..d99c814 100644 --- a/voiceagentCheck/voiceagentCheck.go +++ b/voiceagentCheck/voiceagentCheck.go @@ -20,7 +20,7 @@ func main() { for _, e := range os.Environ() { s := strings.SplitN(e, "=", 2) - if strings.Compare(s[0], "ICSVA_ROOT") == 0 { + if strings.Compare(s[0], "ICSVB_ROOT") == 0 { homeDir = s[1] //service.SetHomeDir(s[1]) isStop = true @@ -33,7 +33,7 @@ func main() { } //configuration - configFile := fmt.Sprintf("%s/config/icsva.xml", homeDir) + configFile := fmt.Sprintf("%s/config/icsbot.xml", homeDir) //configFile := fmt.Sprintf("%s/config/icsvc.xml", service.GetHomeDir()) //fmt.Println("Config file:", configFile) conf, confErr := icsconf.OpenConfig(configFile, homeDir) diff --git a/voicebot.go b/voicebot.go index e200cbc..46019c2 100644 --- a/voicebot.go +++ b/voicebot.go @@ -49,7 +49,7 @@ func main() { var homeDir string for _, e := range os.Environ() { s := strings.SplitN(e, "=", 2) - if strings.Compare(s[0], "ICSVA_ROOT") == 0 { + if strings.Compare(s[0], "ICSVB_ROOT") == 0 { homeDir = s[1] //service.SetHomeDir(s[1]) isStop = true