Skip to content

Commit

Permalink
Removed even more unecessary debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
maubreville committed Jan 16, 2025
1 parent 3b23a84 commit ab84d7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exact/exact/annotations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def export_auth(request, export_id):

@login_required
def annotate(request, image_id):
start = timer()
#start = timer()
show_processing=request.user.has_perm('processing.use_server_side_plugins') & settings.SHOW_PROCESSING_PANEL
selected_image = get_object_or_404(Image, id=image_id)
imageset_perms = selected_image.image_set.get_perms(request.user)
Expand Down Expand Up @@ -104,7 +104,7 @@ def annotate(request, image_id):
"USE_CDN_WSI": settings.USE_CDN_WSI
})

logger.info(f"{timer() - start:.4f};Load annotation page")
# logger.info(f"{timer() - start:.4f};Load annotation page")
return response
else:
return redirect(reverse('images:view_imageset', args=(selected_image.image_set.id,)))
Expand Down
1 change: 1 addition & 0 deletions exact/exact/settings_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose',
'level' : 'ERROR',
},
'file_info': {
'level': 'INFO',
Expand Down
2 changes: 1 addition & 1 deletion exact/util/slide_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def get(self, path):
if len(self._cache) == self.cache_size:
self._cache.popitem(last=False)
self._cache[path] = slide
print('Added to cache')
# print('Added to cache')
return slide

class SlideFile(object):
Expand Down

0 comments on commit ab84d7a

Please sign in to comment.