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

Rho::Log.info parameters do not match documentation #365

Open
jtara opened this issue Aug 9, 2014 · 1 comment
Open

Rho::Log.info parameters do not match documentation #365

jtara opened this issue Aug 9, 2014 · 1 comment
Assignees
Labels

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

As well, the documentation says that info is a class-level method. At the same time, other methods that write to the log do not state this. I find this odd.

See also:

rhomobile/rhomobile-docs#240

@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

@mmalinin mmalinin self-assigned this Sep 24, 2014
@mmalinin mmalinin added the bug label Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants