summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-08-03 15:24:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-08-03 15:24:45 (GMT)
commitc0f3d0458db57212319e7db1da4dbf82a053bb3b (patch)
tree7037ca746c1ee745e2d8bb259b1ae65b6f08fb97 /src
parentf7c737a42e7776ba98faa99db89536351ca1391e (diff)
no debug outpout, set session timeout to 10min
Diffstat (limited to 'src')
-rw-r--r--src/pool-import/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pool-import/main.go b/src/pool-import/main.go
index 7dd7851..eb02756 100644
--- a/src/pool-import/main.go
+++ b/src/pool-import/main.go
@@ -27,6 +27,7 @@ import (
"net/http"
"os"
"sort"
+ "time"
"code.helsinki.at/rhrd-go/rddb"
"code.helsinki.at/rhrd-go/rhimport"
@@ -68,7 +69,7 @@ func HandleCart(cart uint, cut uint, artist, album, title, dstgroup string, sess
return
}
- s.Run(0)
+ s.Run(10 * time.Minute)
res := <-donechan
if res.ResponseCode != http.StatusOK {
@@ -97,7 +98,8 @@ func main() {
defer newdb.Cleanup()
stdlog := log.New(os.Stderr, "[std] ", log.LstdFlags)
- dbglog := log.New(os.Stderr, "[dbg] ", log.LstdFlags)
+ // dbglog := log.New(os.Stderr, "[dbg] ", log.LstdFlags)
+ var dbglog *log.Logger
sessions, err := rhimport.NewSessionStore(conf, newdb.GetInterface(), stdlog, dbglog)
if err != nil {
log.Fatal("Error initializing Session Store:", err)