Skip to content

Commit

Permalink
chore: remove extra debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Aug 21, 2024
1 parent 02861ee commit e7a95e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions netbox_cmdb/netbox_cmdb/api/cmdb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ def post(self, request):

devices = Device.objects.filter(site=site.id)

import logging

def _start():
CHUNK_SIZE = 20
device_ids = [dev.id for dev in devices]
Expand All @@ -111,11 +109,9 @@ def _start():

try:
with transaction.atomic():
logging.warning("cleaning site")
cleaning.clean_site_topology(site)
yield "{{'message': 'topology cleaned'}}\n\n"
except Exception as e:
logging.warning("error: %s", e)
StreamingHttpResponse.status_code = 500
msg = {"error": str(e)}
yield f"{msg}\n\n"
Expand Down

0 comments on commit e7a95e8

Please sign in to comment.