Skip to content
Snippets Groups Projects
Commit 871cb226 authored by Robert Latta's avatar Robert Latta
Browse files

added additional info to log message

parent 337cc8b5
Branches
Tags
No related merge requests found
...@@ -547,8 +547,8 @@ def reload_lab_router_config_chorded(self, hostname): ...@@ -547,8 +547,8 @@ def reload_lab_router_config_chorded(self, hostname):
hostname, community, logical_systems, self.log_info) hostname, community, logical_systems, self.log_info)
self.log_info(f'updated configuration for lab {hostname}') self.log_info(f'updated configuration for lab {hostname}')
except Exception: except Exception as e:
errmsg = f'unhandled exception loading {hostname} info' errmsg = f'unhandled exception loading {hostname} info: {e}'
logger.exception(errmsg) logger.exception(errmsg)
update_latch_status(InventoryTask.config, pending=True, failure=True) update_latch_status(InventoryTask.config, pending=True, failure=True)
self.log_error(errmsg) self.log_error(errmsg)
...@@ -587,8 +587,8 @@ def reload_router_config_chorded(self, hostname): ...@@ -587,8 +587,8 @@ def reload_router_config_chorded(self, hostname):
snmp_refresh_peerings_chorded(hostname, community, logical_systems) snmp_refresh_peerings_chorded(hostname, community, logical_systems)
logger.info(f'updated configuration for {hostname}') logger.info(f'updated configuration for {hostname}')
except Exception: except Exception as e:
errmsg = f'unhandled exception loading {hostname} info' errmsg = f'unhandled exception loading {hostname} info: {e}'
logger.exception(errmsg) logger.exception(errmsg)
update_latch_status(InventoryTask.config, pending=True, failure=True) update_latch_status(InventoryTask.config, pending=True, failure=True)
self.log_error(errmsg) self.log_error(errmsg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment