aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-19 15:41:43 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-19 15:41:43 +0000
commitafdf8a014236452e098ab1266c9a9315824f8103 (patch)
tree0c1db202f6f5c81783d7d2ccb1502443ab84a8ae /main.go
parent2211d7ace360548f6ee450f03d995c6bb246be2b (diff)
downloadcommunique-afdf8a014236452e098ab1266c9a9315824f8103.tar.gz
url helpers, cgi response format
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index fe2bb30..aa92f9f 100644
--- a/main.go
+++ b/main.go
@@ -30,7 +30,9 @@ func main() {
log.Debugf("Loaded TOML Config: %+v", cfg)
// DB
- db, err := badger.Open(badger.DefaultOptions(cfg.DbPath))
+ dbOpts := badger.DefaultOptions(cfg.DbPath)
+ // dbOpts.Logger = log // TODO needs to adapt Warningf to Warnf
+ db, err := badger.Open(dbOpts)
if err != nil {
log.Fatal(err)
}