Updated so that the debug functor only attempts its job if logging debug is on.
Updated so that the debug functor only attempts its job if logging debug is on.

mc2014/anvil,hagleitn/Openstack-Devstack2,stackforge/anvil,stackforge/anvil,hagleitn/Openstack-Devstack2,mc2014/anvil