#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 , 19 years ago
comment:2 by , 19 years ago
Milestone: | → 0.10 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Will use a MemoryHandler with no target handler.
comment:3 by , 19 years ago
Keywords: | logging added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in r3339.
comment:4 by , 19 years ago
You are aware of [3241], right? So setting the buffer size to 0 eliminate those dangling refs?
comment:5 by , 19 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.
#3177 marked as dup.