Skip to content

Commit

Permalink
removing log.debug calls used during development of feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rmhasan committed Feb 6, 2017
1 parent 4f11680 commit 4282f7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions nsot/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,13 +505,11 @@ def next_network(self, request, pk=None, site_pk=None, *args, **kwargs):
num = params.get('num')
strict = qpbool(params.get('strict_allocation', False))
if request.method == 'POST':
log.debug('Recieved a post request in next_network')
state = 'reserved' if qpbool(params.get('reserve', False)) else 'allocated'
is_ip = True if prefix_length == 32 or prefix_length == 128 else False
networks = network.get_next_network(
prefix_length, num, strict, as_objects=True
)
log.debug('The state requested is %s'%state)
for n in networks:
obj = models.Network(network_address=n.network_address,
broadcast_address=n.broadcast_address,
Expand All @@ -526,7 +524,6 @@ def next_network(self, request, pk=None, site_pk=None, *args, **kwargs):
obj=obj, user=self.request.user, event='Create'
)
else:
log.debug('Recieved a get method in next_network')
networks = network.get_next_network(
prefix_length, num, strict, as_objects=False
)
Expand All @@ -544,7 +541,6 @@ def next_address(self, request, pk=None, site_pk=None, *args, **kwargs):
if request.method == 'POST':
addresses = network.get_next_address(num, strict, as_objects=True)
state = 'reserved' if qpbool(params.get('reserve', False)) else 'allocated'
log.debug('The state requested is %s'%state)
for n in addresses:
prefix_length = 32 if n.version == 4 else 128
obj = models.Network(network_address=n.network_address,
Expand Down
2 changes: 0 additions & 2 deletions nsot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,6 @@ def get_next_network(self, prefix_length, num=None, strict=False,
"""
start_time = time.time() # For debugging

log.debug('Allocation type is %s'% ('strict' if strict else 'loose'))

# If we're reserved, automatically ZILCH!!
# TODO(jathan): Should we raise an error instead?
if self.state == Network.RESERVED:
Expand Down

0 comments on commit 4282f7c

Please sign in to comment.