Просмотр исходного кода

Print the abs path of the dumped DAG

Vadim Markovtsev 7 лет назад
Родитель
Сommit
6b041bdfd0
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      pipeline.go

+ 2 - 0
pipeline.go

@@ -497,6 +497,8 @@ func (pipeline *Pipeline) resolve(dumpPath string) {
 	}
 	}
 	if dumpPath != "" {
 	if dumpPath != "" {
 		ioutil.WriteFile(dumpPath, []byte(graphCopy.Serialize(strplan)), 0666)
 		ioutil.WriteFile(dumpPath, []byte(graphCopy.Serialize(strplan)), 0666)
+		absPath, _ := filepath.Abs(dumpPath)
+		fmt.Fprintf(os.Stderr, "Wrote the DAG to %s\n", absPath)
 	}
 	}
 }
 }