Python logging doesn't create directories
Bug #397111 reported by
Michael Gorven
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ibid |
Fix Released
|
Medium
|
Michael Gorven |
Bug Description
The infamous startup error "No such file or directory: 'logs/ibid.log'" is due
to Python logging assuming that directories exist. We need to solve this one
way or another. The options are:
1. Parse the logging config and try to identify logfiles
2. Introspect the logging handlers once the config has been loaded and
identify logfiles
3. Handle the default configuration of logs/ibid.log
affects ibid
milestone 0.1
Related branches
Changed in ibid: | |
assignee: | nobody → Michael Gorven (mgorven) |
status: | New → In Progress |
To post a comment you must log in.
> 2. Introspect the logging handlers once the config has been loaded and
> identify logfiles
This won't work since the exception occurs during the fileConfig() call.