From c0f3d0458db57212319e7db1da4dbf82a053bb3b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 3 Aug 2016 17:24:45 +0200 Subject: no debug outpout, set session timeout to 10min 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) -- cgit v0.10.2