Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10810 closed defect (fixed)

Leak to the log on other environment

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 0.12.4
Component: general Version: 0.12-stable
Severity: normal Keywords: log
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The logger library in Python is similar to log4j. The loggers have hierarchy with the period-separated names. The log messages are passed to the ancestor logger handlers. See http://docs.python.org/library/logging.html#logger-objects.

And, Trac uses the path of environment as logger name.

If the path has period, it will output to the ancestor logger.

Patch [80b89ce8/jomae.git].

How to reproduce

  1. Create two environments named /var/trac/parent and /var/trac/parent.child
  2. Enable logging on the environments
  3. Run tracd -e
  4. Access parent.child environment using your browser
  5. Output to both log files on the environments

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 12 years ago

Looks good!

comment:2 by Jun Omae, 12 years ago

Resolution: fixed
Status: newclosed

Applied in [11222] and merged in [11223].

comment:3 by Jun Omae, 12 years ago

Owner: set to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.