print where data is being served from

This commit is contained in:
Aaron Bieber 2024-03-31 13:45:36 -06:00
parent e9a40cc1bb
commit d1704af063
No known key found for this signature in database

View File

@ -7,6 +7,8 @@ import (
"log" "log"
"net" "net"
"net/http" "net/http"
"os"
"path"
"strconv" "strconv"
"time" "time"
@ -133,6 +135,9 @@ func main() {
reg := flag.Bool("reg", true, "enable user registration") reg := flag.Bool("reg", true, "enable user registration")
listen := flag.String("listen", ":8383", "interface and port to listen on") listen := flag.String("listen", ":8383", "interface and port to listen on")
flag.Parse() flag.Parse()
log.Printf("Storing data in: %q", path.Join(os.Getenv("PWD"), "db"))
d := diskv.New(diskv.Options{ d := diskv.New(diskv.Options{
BasePath: "db", BasePath: "db",
Transform: func(s string) []string { return []string{} }, Transform: func(s string) []string { return []string{} },