From dfb75dc79d84bae0a4096982d2584507e0b5d4b6 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 19 Feb 2014 14:51:14 -0800 Subject: [PATCH] Fixed double logging of UPDATE and DELETE commands. --- callback_delete.go | 2 -- callback_update.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/callback_delete.go b/callback_delete.go index facb853b..3bf5b7b0 100644 --- a/callback_delete.go +++ b/callback_delete.go @@ -10,8 +10,6 @@ func BeforeDelete(scope *Scope) { } func Delete(scope *Scope) { - defer scope.Trace(time.Now()) - if !scope.HasError() { if !scope.Search.Unscope && scope.HasColumn("DeletedAt") { scope.Raw( diff --git a/callback_update.go b/callback_update.go index a3c49372..095bbf48 100644 --- a/callback_update.go +++ b/callback_update.go @@ -41,8 +41,6 @@ func UpdateTimeStampWhenUpdate(scope *Scope) { } func Update(scope *Scope) { - defer scope.Trace(time.Now()) - if !scope.HasError() { var sqls []string