log output

This commit is contained in:
Aaron Bieber 2022-11-17 08:48:51 -07:00
parent 9a867c7438
commit 671019ff26
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -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=";

View File

@ -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)
} }
}() }()