From 427f661c46a5091c54e582340eefc08e7502dc7d 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 04478f660..73f2ac125 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 {