log output
This commit is contained in:
parent
9a867c7438
commit
671019ff26
@ -15,7 +15,7 @@
|
|||||||
in {
|
in {
|
||||||
tsvnstat = pkgs.buildGoModule {
|
tsvnstat = pkgs.buildGoModule {
|
||||||
pname = "tsvnstat";
|
pname = "tsvnstat";
|
||||||
version = "v0.0.2";
|
version = "v0.0.3";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
vendorSha256 = "sha256-RNhu1gQ62Hg8Fhiw9uIS+b4YaAHtZMaqbelMKv+oZjM=";
|
vendorSha256 = "sha256-RNhu1gQ62Hg8Fhiw9uIS+b4YaAHtZMaqbelMKv+oZjM=";
|
||||||
|
5
main.go
5
main.go
@ -91,10 +91,13 @@ func main() {
|
|||||||
|
|
||||||
genCmd := exec.Command(tmpFile.Name(), ifNames...)
|
genCmd := exec.Command(tmpFile.Name(), ifNames...)
|
||||||
genCmd.Dir = *dir
|
genCmd.Dir = *dir
|
||||||
_, err = genCmd.Output()
|
out, err := genCmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Println(out)
|
||||||
|
|
||||||
time.Sleep(5 * time.Minute)
|
time.Sleep(5 * time.Minute)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user