@access_log_level(logging.WARN)
def log_view(request):
  if not request.user.is_superuser:
    return HttpResponse(_("You must be a superuser."))

  l = logging.getLogger()
  for h in l.handlers:
    if isinstance(h, desktop.log.log_buffer.FixedBufferHandler):
      return render('logs.mako', request, dict(log=[l for l in h.buf], query=request.GET.get("q", "")))

  return render('logs.mako', request, dict(log=[_("No logs found!")], query=''))
Filter to remove candidate that are too small.  This
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/views.py/log_view--crossover with--dataset/ETHPy150Open scikit-beam/scikit-beam/skbeam/core/feature.py/filter_peak_height