Skip to content

Commit

Permalink
migrate to most recent gorp
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Root committed Jun 30, 2018
1 parent 89f12da commit d7c3eca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions model/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"database/sql"
"github.com/fale/drupal2hugo/util"
"errors"
"github.com/rickb777/gorp"
"github.com/go-gorp/gorp"
"log"
"os"
)
Expand Down Expand Up @@ -71,7 +71,7 @@ func chooseDialect(driver string) gorp.Dialect {
func controlTrace(trace bool, DbMap *gorp.DbMap) {
if trace {
dbTraceWriter := util.ConstructSomeLogWriter(traceLog, os.Stdout)
DbMap.TraceOn("", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
DbMap.TraceOn("[drupal2hugo]", log.New(dbTraceWriter, "gorptest: ", log.Lmicroseconds))
} else {
DbMap.TraceOff()
}
Expand Down
2 changes: 1 addition & 1 deletion model/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package model
import (
"github.com/fale/drupal2hugo/util"
"fmt"
"github.com/rickb777/gorp"
"github.com/go-gorp/gorp"
)

//type NodeRevision struct {
Expand Down

0 comments on commit d7c3eca

Please sign in to comment.