Commit ebb0ac41 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis

astakosclient: Remove basicConfig from root logger

Don't use basicConfig inside astakosclient library. This function should
be called from the main thread. The user of our library should be able
to set a handler for `astakosclient' logger if she wants to.
parent 5f6d25dd
......@@ -94,11 +94,8 @@ class AstakosClient(object):
# Get logger
if logger is None:
logging.basicConfig(
format='%(asctime)s [%(levelname)s] %(name)s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
level=logging.INFO)
logger = logging.getLogger("astakosclient")
logger.setLevel(logging.INFO)
logger.debug("Intialize AstakosClient: auth_url = %s, "
"use_pool = %s, pool_size = %s",
auth_url, use_pool, pool_size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment