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

Log API - incorrect parameters shown for info etc. #240

Open
jtara opened this issue Aug 9, 2014 · 3 comments
Open

Log API - incorrect parameters shown for info etc. #240

jtara opened this issue Aug 9, 2014 · 3 comments

Comments

@jtara
Copy link

jtara commented Aug 9, 2014

Unclear if this is a bug or a documentation issue.

Parameters
message : STRING
Log message.
category : STRING Default: APP
Log category.

Category seems to be required:

I 08/08/2014 19:28:30:284 b056d000 APP| App error: Wrong number of arguments: 1 instead of 2
apps/app/Settings/controller.rb:395:in 'info'
apps/app/Settings/controller.rb:395:in 'block in set_log_preferences'

Line 395:

  Rho::Log.info msg
@jtara jtara changed the title Log API - incorrect parameters shown for info Log API - incorrect parameters shown for info etc. Aug 9, 2014
@jtara
Copy link
Author

jtara commented Aug 9, 2014

Update: this applies not only to info but to all of the methods that write to the log. The category does not appear to default to APP.

Perhaps there is some confusion with the controller helpers app_info etc. that do default. (Although they default to multiple categories - APP and <ControllerName>

@michaelToews michaelToews self-assigned this Aug 11, 2014
@michaelToews
Copy link

@rognar Can you please tell me what the actual default for the Log API methods' categories are? The defaults reported in the XML seem to be wrong.

@alex-epifanoff
Copy link
Contributor

@michaelToews @rognar default category should be "APP" but it seems that call to logging methods will fail if category is omitted. Seems like a bug.

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

3 participants