<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_topology():
 """ updates all the topology sends logs to the "nodeshot.networking" logger """

    for topology in Topology.objects.all():
        try:
            topology.update()
        except Exception as e:
            msg = 'Failed to update {}'.format(topology.__repr__())
            logger.exception(msg)
            print('{0}: {1}\n'
                  'see networking.log for more information\n'.format(msg, e.__class__))