Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #13090 (closed)

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

Django 1.8 and missing request in log

Reported by: atarkowska Owned by: atarkowska
Priority: major Milestone: OMERO-5.2.1
Component: Web Version: OMERO-5.2.0-m0
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description (last modified by atarkowska)

OMEROweb_brokenrequest should put request params into the logfile

FULL_REQUEST_LOGFORMAT = (
    '%(asctime)s %(levelname)5.5s [%(name)40.40s]'
    ' (proc.%(process)5.5d) %(funcName)s:%(lineno)d'
    ' HTTP %(status_code)d %(request)s')
2015-11-03 10:56:23,378 ERROR [                          django.request] (proc.30935) handle_uncaught_exception:256 HTTP 500 <WSGIRequest: GET '/merge/weberror/error_500/'>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/opt/hudson/workspace/OMERO-DEV-Python27-merge-deploy/src/dist/lib/python/omeroweb/decorators.py", line 480, in wrapped
    retval = f(request, *args, **kwargs)
  File "/opt/hudson/workspace/OMERO-DEV-Python27-merge-deploy/src/dist/lib/python/omeroweb/decorators.py", line 530, in wrapper
    context = f(request, *args, **kwargs)
  File "/home/hudson/OMERO.webapps/weberror/views.py", line 52, in error500
    context['template'] = view_raise_500  # noqa
NameError: global name 'view_raise_500' is not defined

Change History (5)

comment:1 Changed 9 years ago by atarkowska

  • Description modified (diff)

comment:3 Changed 9 years ago by atarkowska

  • Resolution set to wontfix
  • Status changed from new to closed

It promotes ways of request logging that avoid things like raw passwords in logs. People can write own custom logging handler if needed.

comment:4 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.1 to OMERO-5.2.2

Milestone OMERO-5.2.1 deleted

comment:5 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to OMERO-5.2.1

Milestone OMERO-5.2.2 deleted

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65321 sec.)

We're Hiring!