Code

Opened 2 years ago

Closed 2 years ago

#17330 closed Cleanup/optimization (fixed)

Logger documentation minor error

Reported by: jblaine Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Very minor nit:

https://docs.djangoproject.com/en/1.3/topics/logging/

...

Defines three handlers:

null, a NullHandler, which will pass any DEBUG or higher message to /dev/null.

console, a StreamHandler, which will print any DEBUG message to stdout. This handler uses the simple output format.

mail_admins, an AdminEmailHandler, which will e-mail any ERROR level message to the site admins. This handler uses the special filter.

For clarity, I believe the 'console' and 'mail_admins' blocks should be rewritten to indicate, as the 'null' one does, those handlers will act on DEBUG or ERROR level messages (respectively) *or higher*.

Correct?

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Bug to Cleanup/optimization

comment:2 Changed 2 years ago by adrian

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

In [17215]:

Fixed #17330 -- Fixed error in logging.txt. Thanks, jblaine

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.