cicv 2 달 전
부모
커밋
bdec50c7f6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      aarch64/pjibot_guide/common/config/c_cloud.go

+ 2 - 2
aarch64/pjibot_guide/common/config/c_cloud.go

@@ -266,9 +266,9 @@ func getSnCode() (string, error) {
 	command = append(command, "sn")
 	_, snOutput, err := util.ExecuteSync(LocalConfig.RosparamPath, command...)
 	if err != nil {
-		return "", errors.New("执行获取sn码命令" + util.ToString(command) + "出错:" + util.ToString(err))
+		return "", errors.New("执行获取sn码命令" + LocalConfig.RosparamPath + util.ToString(command) + "出错:" + util.ToString(err))
 	}
-	c_log.GlobalLogger.Info("执行获取sn码命令", command, "成功,结果为:", snOutput)
+	c_log.GlobalLogger.Info("执行获取sn码命令", LocalConfig.RosparamPath, command, "成功,结果为:", snOutput)
 	snCode := strings.Replace(strings.Replace(snOutput, " ", "", -1), "\n", "", -1)
 	return snCode, nil
 }