From 753da5086597913f77ae5dd6dab788a025b99c2b Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Wed, 12 Sep 2012 07:27:23 -0400
Subject: [PATCH] Moved debug log line to appropriate position

---
 interface/lib/classes/remoting.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 90e1aa7..9b1e13c 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -2784,7 +2784,6 @@
 		$this->oldDataRecord = $old_rec;
 		$this->id = $primary_id;
 		$this->dataRecord = $params;
-		$app->log('Executed updateQueryExecute, raising events now if any: ' . $event_identifier, LOGLEVEL_DEBUG);
 		
 		$app->db->query($sql);
 		
@@ -2794,6 +2793,7 @@
 		}
 		
 		$affected_rows = $app->db->affectedRows();
+		$app->log('Executed updateQueryExecute, raising events now if any: ' . $event_identifier, LOGLEVEL_DEBUG);
 		
 		if($event_identifier != '') $app->plugin->raiseEvent($event_identifier,$this);
 		

--
Gitblit v1.9.1