From d1704af06393c9736adb898e913122cd8e56da2d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 31 Mar 2024 13:45:36 -0600 Subject: [PATCH] print where data is being served from --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 7c01d1c..350f19c 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,8 @@ import ( "log" "net" "net/http" + "os" + "path" "strconv" "time" @@ -133,6 +135,9 @@ func main() { reg := flag.Bool("reg", true, "enable user registration") listen := flag.String("listen", ":8383", "interface and port to listen on") flag.Parse() + + log.Printf("Storing data in: %q", path.Join(os.Getenv("PWD"), "db")) + d := diskv.New(diskv.Options{ BasePath: "db", Transform: func(s string) []string { return []string{} },