# Copyright (C) 2011 Midokura Japan KK

"""
Internal Utility Functions
"""

import logging
import os.path

logging.basicConfig(level=logging.DEBUG)
LOG = logging.getLogger('nova...midonet.client')

def debug_print(msg, resp, body):
    LOG.debug('-' * 10)
    LOG.debug("%s :",   msg)
    LOG.debug("Resp: %s" % resp)
    LOG.debug("Body: %s" % body)
    LOG.debug('-' * 10)

def get_uuid(response):
    return os.path.basename(response['location'])


# Copyright (C) 2011 Midokura Japan KK

"""
Internal Utility Functions
"""

import logging
import os.path

logging.basicConfig(level=logging.DEBUG)
LOG = logging.getLogger('midonet.client')

def debug_print(msg, resp, body):
    LOG.debug('-' * 10)
    LOG.debug("%s :",   msg)
    LOG.debug("Resp: %s" % resp)
    LOG.debug("Body: %s" % body)
    LOG.debug('-' * 10)

def get_uuid(response):
    return os.path.basename(response['location'])


--- 
+++ 
@@ -8,7 +8,7 @@
 import os.path
 
 logging.basicConfig(level=logging.DEBUG)
-LOG = logging.getLogger('midonet.client')
+LOG = logging.getLogger('nova...midonet.client')
 
 def debug_print(msg, resp, body):
     LOG.debug('-' * 10)
Change name for nova integration

With Nova's logger setting, logger name starting with 'nova' only gets logged.
