diff --git a/collector.go b/collector.go index 5ef517d..587fc1d 100644 --- a/collector.go +++ b/collector.go @@ -2,13 +2,18 @@ package main import ( zord_tree "g.arns.lt/zordsdavini/zord-tree" + "log" "os" ) func Collect() { + log.Println("Collect: start") if _, err := os.Stat(source); os.IsNotExist(err) { + log.Print(err) panic("Source directory does not exist.") } + log.Println("Collect: pre") _ = zord_tree.PopulateTree(source, meta, customMeta) + log.Println("Collect: post") } diff --git a/server.go b/server.go index 5358fd3..9dc0402 100644 --- a/server.go +++ b/server.go @@ -67,6 +67,7 @@ func (TreeManagerServer *server) GetFile(_ context.Context, in *FileRequest) (*F } func (TreeManagerServer *server) RebuildTree(ctx context.Context, in *TreeSecret) (*RebuildResponse, error) { + log.Println(in) success := false if in.Key == key { Collect()