environs/config: fails if logging config is not attr=value
Bug #1478936 reported by
Roger Peppe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Low
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
In environs/
levels, err := loggo.ParseConf
if err != nil {
return err
}
// If there is is no specified level for "unit", then set one.
if _, ok := levels["unit"]; !ok {
loggingConfig = loggingConfig + ";unit=DEBUG"
}
This fails if loggingConfig is "DEBUG" (a valid config) because "DEBUG;unit=DEBUG" is
not a valid logging configuration.
DEBUG seems like a bad default anyway, but perhaps loggo.ParseConf
could be changed to accept the above string as equivalent to "<root>
tags: | added: logging tech-debt |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
To post a comment you must log in.
This is still a valid bug that really should be fixed.