CamelFilterDriver: Remove ":filter" debug messages.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 24 Jun 2013 11:13:33 +0000 (07:13 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 24 Jun 2013 11:13:33 +0000 (07:13 -0400)
There's not enough debugging output here to be useful, the debug key
syntax is weird, and I'd like rewrite filter logging to be activated
by CAMEL_DEBUG=filter and give each output line a prefix that's easy
to isolate with grep.

camel/camel-filter-driver.c

index e5d54a3..b4c8bae 100644 (file)
@@ -1758,13 +1758,6 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver,
                                driver, FILTER_LOG_START,
                                "%s", rule->name);
 
-                       if (camel_debug (":filter"))
-                               printf (
-                                       "filtering '%s' applying rule %s\n",
-                                       camel_message_info_subject (info) ?
-                                       camel_message_info_subject (info) :
-                                       "?no subject?", rule->name);
-
                        /* perform necessary filtering actions */
                        camel_sexp_input_text (
                                driver->priv->eval,
@@ -1826,12 +1819,6 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver,
                        driver, FILTER_LOG_ACTION,
                        "Copy to default folder");
 
-               if (camel_debug (":filter"))
-                       printf (
-                               "filtering '%s' copy %s to default folder\n",
-                               camel_message_info_subject (info) ? camel_message_info_subject (info):"?no subject?",
-                               driver->priv->modified?"modified message":"");
-
                if (!driver->priv->modified && driver->priv->uid && driver->priv->source && camel_folder_has_summary_capability (driver->priv->source)) {
                        GPtrArray *uids;