Turning on modl database trace.
This commit is contained in:
parent
1f12c9eb09
commit
f0cd2c1d79
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ package datastore
|
|||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/jmoiron/modl"
|
||||
|
@ -28,6 +29,7 @@ func Connect() {
|
|||
if err != nil {
|
||||
log.Fatal("Error connecting to PostgreSQL database (using PG* environment variables): ", err)
|
||||
}
|
||||
DB.TraceOn("[modl]", log.New(os.Stdout, "bactdb:", log.Lmicroseconds))
|
||||
DB.Db = DB.Dbx.DB
|
||||
})
|
||||
}
|
||||
|
|
Reference in a new issue