From ee23004d9426deb926290faded0c0a3e25bbc4ec Mon Sep 17 00:00:00 2001
From: Derek Wright <git@dwwright.net>
Date: Wed, 16 Mar 2011 15:34:41 -0500
Subject: [PATCH] Issue #1095170 by dww: Removed excess watchdog() when generating context tags.

---
 dme_batch.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dme_batch.inc b/dme_batch.inc
index b040cf6..cdbaa6d 100644
--- a/dme_batch.inc
+++ b/dme_batch.inc
@@ -58,8 +58,8 @@ function dme_batch_form_submit($form, &$form_submit) {
  * and the $context['finished'] shows a complete if it is 1.
  */
 function _dme_batch_regenerate(&$context) {
-  watchdog('batch', 'Starting DME Regenerate Context Batch');
   if (empty($context['sandbox'])) {
+    watchdog('dme', 'Starting DME Regenerate Context Batch');
     $context['sandbox']['progress'] = 0;
     $context['sandbox']['current_node'] = 0;
     $context['sandbox']['errors'] = array();
@@ -96,7 +96,7 @@ function _dme_batch_regenerate(&$context) {
       );
       $context['sandbox']['errors'][$row['nid']] = $error_message;
       $context['results']['errors'][] = $error_message;
-      watchdog('batch', $error_message, array(), WATCHDOG_ERROR, url('node/'. $row['nid']));
+      watchdog('dme', $error_message, array(), WATCHDOG_ERROR, url('node/'. $row['nid']));
     }
   }
 
-- 
1.7.3.5

