Invalid use of logging

logging itself is not callable.
Merge pull request #351 from mtomwing/client_logging_fix

Fix invalid use of logging