Skip to content
Snippets Groups Projects
Commit 716958fb authored by Erik Reid's avatar Erik Reid
Browse files

log entry/exit on more methods

parent a34140e3
Branches
Tags
No related merge requests found
...@@ -409,6 +409,7 @@ def _refresh_peers(hostname, key_base, peers): ...@@ -409,6 +409,7 @@ def _refresh_peers(hostname, key_base, peers):
rp.execute() rp.execute()
@log_task_entry_and_exit
def refresh_ix_public_peers(hostname, netconf): def refresh_ix_public_peers(hostname, netconf):
_refresh_peers( _refresh_peers(
hostname, hostname,
...@@ -416,6 +417,7 @@ def refresh_ix_public_peers(hostname, netconf): ...@@ -416,6 +417,7 @@ def refresh_ix_public_peers(hostname, netconf):
juniper.ix_public_peers(netconf)) juniper.ix_public_peers(netconf))
@log_task_entry_and_exit
def refresh_vpn_rr_peers(hostname, netconf): def refresh_vpn_rr_peers(hostname, netconf):
_refresh_peers( _refresh_peers(
hostname, hostname,
...@@ -423,6 +425,7 @@ def refresh_vpn_rr_peers(hostname, netconf): ...@@ -423,6 +425,7 @@ def refresh_vpn_rr_peers(hostname, netconf):
juniper.vpn_rr_peers(netconf)) juniper.vpn_rr_peers(netconf))
@log_task_entry_and_exit
def refresh_interface_address_lookups(hostname, netconf): def refresh_interface_address_lookups(hostname, netconf):
_refresh_peers( _refresh_peers(
hostname, hostname,
...@@ -430,6 +433,7 @@ def refresh_interface_address_lookups(hostname, netconf): ...@@ -430,6 +433,7 @@ def refresh_interface_address_lookups(hostname, netconf):
juniper.interface_addresses(netconf)) juniper.interface_addresses(netconf))
@log_task_entry_and_exit
def refresh_juniper_interface_list(hostname, netconf): def refresh_juniper_interface_list(hostname, netconf):
logger.debug( logger.debug(
'removing cached netconf-interfaces for %r' % hostname) 'removing cached netconf-interfaces for %r' % hostname)
...@@ -569,6 +573,7 @@ def internal_refresh_phase_2(self): ...@@ -569,6 +573,7 @@ def internal_refresh_phase_2(self):
return self.success() return self.success()
@log_task_entry_and_exit
def launch_refresh_cache_all(config): def launch_refresh_cache_all(config):
""" """
utility function intended to be called outside of the worker process utility function intended to be called outside of the worker process
...@@ -664,7 +669,7 @@ def refresh_finalizer(self, pending_task_ids_json): ...@@ -664,7 +669,7 @@ def refresh_finalizer(self, pending_task_ids_json):
return self.success() return self.success()
@log_task_entry_and_exit
def _build_service_category_interface_list(update_callback=lambda s: None): def _build_service_category_interface_list(update_callback=lambda s: None):
def _classify(ifc): def _classify(ifc):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment