Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Print controller module into request log

#600

Currently ActionController request log contains only controller class name, without module, like

Processing UsersController#index ...

When you put half of you controllers in modules, like UsersController and Admin::UsersController, then the absence of module in the log becames a problem. Mostly for log analysis tools, and for situations when you encounter some routing bugs and can't undersand what controller processed the request.

So I think it would be better to have such output:

Processing Admin::UsersController#index ...

So there is a patch to fix it.

Reported by Dmitry Sokurenko · July 10th, 2008 @ 09:38 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Clemens Kofler
    Clemens Kofler
    • Tag changed from actionpack, controller, enhancement, patch to actionpack, controller, enhancement, patch, tested

    +1 from me. It passes the tests and makes total sense.

    July 11th, 2008 @ 10:14 AM

  2. Clemens Kofler
    Clemens Kofler

    Little note: A single test fails ->

    1) Failure:

    test_action_cache_conditional_options(ActionCacheTest)

    [./test/controller/caching_test.rb:290:in `test_action_cache_conditional_options'

    ./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:91:in `__send__'

    ./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:91:in `run']:

    is not true.

    But this also fails w/o the patch so I don't think it's related.

    July 11th, 2008 @ 10:47 AM

  3. Ripta Pasay
  4. Repository
    Repository
    • State changed from new to resolved

    (from [f7fdbae770275ccbc277c42287b9783cb00fa9fa]) Use fully-qualified controller name when logging. [#600 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 17th, 2008 @ 01:34 AM

  5. Repository
    Repository

    (from [6fbd6c0a009e4848b9cd2e0a055b8ecdb867049f]) Use fully-qualified controller name when logging. [#600 Print controller module into request log state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    August 25th, 2008 @ 09:27 AM