diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -629,9 +629,11 @@ func upload(w http.ResponseWriter, r *http.Request) { func main() { p := flag.Int("p", 8080, "the port to bind to") + dbPath := flag.String("d", "./db/test.db", "the db to connect to") flag.Parse() var err error - db, err = InitAndGetDB("sqlite3", "./db/test.db") + log.Printf("Connecting to db: %s\n", *dbPath) + db, err = InitAndGetDB("sqlite3", *dbPath) if err != nil { panic(err) } |
