summaryrefslogtreecommitdiff
path: root/src/rhimportd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhimportd/main.go')
-rw-r--r--src/rhimportd/main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rhimportd/main.go b/src/rhimportd/main.go
index 72785c0..4f12572 100644
--- a/src/rhimportd/main.go
+++ b/src/rhimportd/main.go
@@ -38,14 +38,15 @@ import (
)
var (
- rhl = log.New(os.Stderr, "[rhimportd]\t", log.LstdFlags)
- rhdl = log.New(ioutil.Discard, "[rhimportd-dbg]\t", log.LstdFlags)
+ rhl = log.New(os.Stderr, "[std] ", log.LstdFlags)
+ rhdl = log.New(ioutil.Discard, "[dbg] ", log.LstdFlags)
)
func init() {
if _, exists := os.LookupEnv("RHIMPORTD_DEBUG"); exists {
rhdl.SetOutput(os.Stderr)
}
+ rhimport.Init(rhl, rhdl)
}
type envStringValue string
@@ -128,7 +129,7 @@ func main() {
}
defer db.Cleanup()
- sessions, err := rhimport.NewSessionStore(conf, db.GetInterface())
+ sessions, err := rhimport.NewSessionStore(conf, db.GetInterface(), rhl, rhdl)
if err != nil {
rhl.Println("Error initializing Session Store:", err)
return