From 091f062eb3bb102813feb574d38550de552a1544 Mon Sep 17 00:00:00 2001 From: Schparky <3172830+Schparky@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:47:45 -0700 Subject: [PATCH] log SQL for association query --- executors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/executors.go b/executors.go index 04478f66..73f2ac12 100644 --- a/executors.go +++ b/executors.go @@ -297,6 +297,7 @@ func (c *Connection) Create(model interface{}, excludeColumns ...string) error { for index := range stms { statements := stms[index].Statements() for _, stm := range statements { + log(logging.SQL, stm.Statement, stm.Args...) if c.TX != nil { _, err := c.TX.Exec(c.Dialect.TranslateSQL(stm.Statement), stm.Args...) if err != nil {