buildout doesn't tear down loggers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
Won't Fix
|
Undecided
|
Unassigned | ||
zopeproject |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When you call buildout from the Python API multiple times, buildout's _setup_logging will add a new logging handler each time, causing its output to be multiplied, e.g.:
<<<Calling bootstrap>>>
Creating directory '/Users/
Creating directory '/Users/
Creating directory '/Users/
Generated script '/Users/
<<<Calling install>>>
Invoking zc.buildout...
Develop: '/Users/
Develop: '/Users/
Installing app.
Installing app.
Generated script '/Users/
Generated script '/Users/
Generated script '/Users/
Generated script '/Users/
Installing data.
Installing data.
Installing zopectl.
Installing zopectl.
Generated script '/Users/
Generated script '/Users/
Installing test.
Installing test.
Generated script '/Users/
Generated script '/Users/
Changed in zopeproject: | |
status: | New → Confirmed |
Creating buildout objects or calling main from Python code isn't a supported use case. I'm not necessarily opposed to creating an API at this level, but it would be a new feature.