Subject: | Logs debugging information even when DEBUG=0 |
Patch to fix this attached.
Cheers,
Dominic.
Subject: | debug.patch |
diff -urN RTx-EmailCompletion-0.06.sasl/lib/RTx/EmailCompletion.pm RTx-EmailCompletion-0.06.debug/lib/RTx/EmailCompletion.pm
--- RTx-EmailCompletion-0.06.sasl/lib/RTx/EmailCompletion.pm 2009-10-08 13:19:21.000000000 +0100
+++ RTx-EmailCompletion-0.06.debug/lib/RTx/EmailCompletion.pm 2009-10-08 15:33:49.000000000 +0100
@@ -20,7 +20,7 @@
$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()) {