调整输出信息

This commit is contained in:
chenxinquan 2022-11-11 11:51:02 +08:00
parent 7f4f2a7365
commit 90f67129b6
2 changed files with 6 additions and 10 deletions

View File

@ -134,7 +134,8 @@ func (ec *ExplorerCommon)LoadConfig(file string) (rc error) {
rc = mapstructure.Decode(ec.EcConfigParser, ec.EcConfig)
if (nil != rc) {
// TODO:
A_DEBUG_ERROR("mapstructure.Decode error ! rc =", rc)
/* */
return rc
} // if (nil != ...

View File

@ -90,8 +90,7 @@ func (ek *ExplorerKernel)StartWithPath(fullpath string) error {
interio , err := ek.EkSandbox.Process(fullpath)
/* */
if (nil != err) {
// TODO:
A_DEBUG_ERROR(err)
A_DEBUG_ERROR("StartWithPath()->Process() error! rc = ", err)
/* */
return err
}
@ -99,8 +98,7 @@ func (ek *ExplorerKernel)StartWithPath(fullpath string) error {
// TODO: remove this, just for test
str, rc := interio.RecvUntil("\n")
if (nil != rc) {
// TODO:
A_DEBUG_ERROR(err)
A_DEBUG_ERROR("StartWithPath()->RecvUntil() error! rc = ", rc)
/* */
return rc
}
@ -114,15 +112,12 @@ func (ek *ExplorerKernel)Start() (err error) {
config, rc := ek.GetExplorerConfigKernel()
err = rc
if (nil != err) {
A_DEBUG_ERROR("nil != err")
A_DEBUG_ERROR("Start()->GetExplorerConfigKernel() error! rc = ", rc)
/* */
return err
}
for i, file := range config.SiteRequests.ImArray {
fmt.Println("step", i, ":\n")
fmt.Println("bin: ", file)
for _, file := range config.SiteRequests.ImArray {
err = ek.StartWithPath(ek.ExplorerCommon.EcConfigFilePrefix +
string(os.PathSeparator) +
file )