[Bps-public-commit] rtx-emailcompletion branch, master, updated. bc31893625e0be3025265e5d0fcac7b46c672f37

Kevin Falcone falcone at bestpractical.com
Wed Nov 25 18:40:51 EST 2009


The branch, master has been updated
       via  bc31893625e0be3025265e5d0fcac7b46c672f37 (commit)
      from  8e7d28d3daab73326c5e7658499e1d8d9f887fa3 (commit)

Summary of changes:
 lib/RTx/EmailCompletion.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit bc31893625e0be3025265e5d0fcac7b46c672f37
Author: DOM <dom at cpan.org>
Date:   Wed Nov 25 18:40:07 2009 -0500

    Don't log if DEBUG is 0
    
    patch failed, but applied manually

diff --git a/lib/RTx/EmailCompletion.pm b/lib/RTx/EmailCompletion.pm
index deca1b4..fa66a17 100644
--- a/lib/RTx/EmailCompletion.pm
+++ b/lib/RTx/EmailCompletion.pm
@@ -20,7 +20,7 @@ sub search_rdbms {
 	$Users->Limit(SUBCLAUSE => 'EmailCompletion', ALIAS => 'main', FIELD => $field, OPERATOR => $RT::EmailCompletionSearch, VALUE => $Email, ENTRYAGGREGATOR => 'OR');
     }
 
-    $RT::Logger->debug($Users->BuildSelectQuery);
+    $RT::Logger->debug($Users->BuildSelectQuery) if DEBUG;
 
     my @users;
     while (my $User = $Users->Next()) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list