Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3148 closed defect (fixed)

Trac does not support the default logger

Reported by: Emmanuel Blot Owned by: Christian Boos
Priority: low Milestone: 0.10
Component: general Version: devel
Severity: minor Keywords: logging
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac creates a default trac.ini file with no logger:

[logging]
log_file = trac.log
log_level = DEBUG
log_type = none

but reports an error with this default logger:

No handlers could be found for logger "<project>"

Note that the same error appears when the unit test suite is run.

OS: Mac OS X 10.4.6, w/ both Python 2.3.5 and Python 2.4.3

Attachments (0)

Change History (6)

comment:1 by Emmanuel Blot, 18 years ago

#3177 marked as dup.

comment:2 by Christian Boos, 18 years ago

Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

Will use a MemoryHandler with no target handler.

comment:3 by Christian Boos, 18 years ago

Keywords: logging added
Resolution: fixed
Status: assignedclosed

Fixed in r3339.

comment:4 by Christopher Lenz, 18 years ago

You are aware of [3241], right? So setting the buffer size to 0 eliminate those dangling refs?

comment:5 by Christian Boos, 18 years ago

Well, I looked at logging/handlers.py and at first sight, I had the impression that setting it to 0 would result in a no-op.

But you're right, I didn't have [3241] in mind while doing that, so I just checked again, and it's actually worse… I'll fix it correctly in a minute.

comment:6 by Christian Boos, 18 years ago

See [3341].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.