Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[networking.links] improved error messages in update_topology command

  • Loading branch information...
commit 780ea441f16330beeff97a6d102266ed51f72cc0 1 parent c24bf81
@nemesisdesign nemesisdesign authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 nodeshot/networking/links/utils.py
View
5 nodeshot/networking/links/utils.py
@@ -25,7 +25,8 @@ def update_topology():
for topology in Topology.objects.all():
try:
topology.update()
- except Exception:
+ except Exception as e:
msg = 'Failed to update {}'.format(topology.__repr__())
logger.exception(msg)
- print('{0}, see networking.log for more information'.format(msg))
+ print('{0}: {1}\n'
+ 'see networking.log for more information\n'.format(msg, e.__class__))
Please sign in to comment.
Something went wrong with that request. Please try again.