fix Python 2.6 incompatibility with logging module

Change-Id: I36cc92ec5a2eeed70645dd82afb1082c2ad3df71
Reviewed-on: http://review.couchbase.org/26006
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>