Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller and action are being logged as "controller" and "action" #25

Closed
ghiculescu opened this issue Jan 23, 2013 · 2 comments
Closed

Comments

@ghiculescu
Copy link
Contributor

I'm getting log messages that resemble this:

method=GET path=/users format=html controller=controller action=action status=200 duration=677.10 view=585.45 db=17.37 uid=5 ip=127.0.0.1 params={"action"=>"index", "controller"=>"users"}

I added the uid, ip, and params as custom options, by overriding append_info_to_payload as described at #23

I'm not sure why the actual controller and action are incorrect. If I use the debugger in append_info_to_payload and call payload[:params]['controller'] it outputs the correct value ("users") - so it seems that value is being lost between here and when lograge handles it.

Rails 3.2.11
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.0.0]

@roidrage
Copy link
Owner

Does this issue come up when you don't add customer information?

@ghiculescu
Copy link
Contributor Author

Oooops, realised my issue - I was overriding payload[:params] later on. Thanks for helping me fix that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants