Revision 9986e569 kamaki/cli/errors.py

b/kamaki/cli/errors.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.
33 33

  
34
import logging
34
from kamaki.logger import get_logger
35 35

  
36
sendlog = logging.getLogger('clients.send')
37
recvlog = logging.getLogger('clients.recv')
36
log = get_logger('kamaki.cli')
38 37

  
39 38

  
40 39
class CLIError(Exception):
......
101 100
    try:
102 101
        stack = [e for e in stack if e != stack[1]]
103 102
    except KeyError:
104
        recvlog.debug('\n   < '.join(stack))
103
        log.debug('\n   < '.join(stack))
105 104

  
106 105
    details = ['%s' % details] if not isinstance(details, list)\
107 106
        else list(details)

Also available in: Unified diff