swift-bench logs stacktracing (when using v2)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Kun Huang |
Bug Description
I am getting this when running swift-bench in 2.0 mode :
stack@devstack:~$ swift-bench -V 2.0 -U admin:admin -K KAKA -A http://
swift-bench 2013-01-25 14:25:23,626 INFO Auth version: 2.0
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/lib/
return fmt.format(record)
File "/usr/lib/
s = self._fmt % record.__dict__
KeyError: 'server'
Logged from file connectionpool.py, line 191
swift-bench 2013-01-25 14:25:25,605 INFO Auth version: 2.0
Traceback (most recent call last):
File "/usr/lib/
msg = self.format(record)
File "/usr/lib/
return fmt.format(record)
File "/usr/lib/
s = self._fmt % record.__dict__
KeyError: 'server'
Logged from file connectionpool.py, line 191
swift-bench 2013-01-25 14:25:27,798 INFO 22 PUTS [0 failures], 10.7/s
swift-bench 2013-01-25 14:25:42,838 INFO 203 PUTS [0 failures], 11.9/s
Changed in swift: | |
status: | New → Triaged |
Changed in swift: | |
milestone: | none → 1.9.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
That logger = logging.getLogger() and follow settings change the work of root logger, like level or format
public module use its root.module will match these settings and response this, which results in that connectionpool could not find keyword "server"
To fix it, changing logger to module itself, just use logging. getLogger( __name_ _) is ok