Skip to content

Commit a2b3242

Browse files
committed
增加sql log 换行,避免影响其他日志
1 parent ec5aac4 commit a2b3242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/default_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (sess *DefaultSqlSession) Rollback() {
107107
}
108108

109109
func (sess *DefaultSqlSession) logLastSql(sql string, params ...interface{}) {
110-
sess.Log(logging.INFO, "sql: [%s], param: %s", sql, fmt.Sprint(params))
110+
sess.Log(logging.INFO, "sql: [%s], param: %s\n", sql, fmt.Sprint(params))
111111
}
112112

113113
func (sess *DefaultSqlSession) exec(ctx context.Context, sql string, params ...interface{}) (common.Result, error) {

0 commit comments

Comments
 (0)