Revision 09b2b38e

b/kamaki/cli/commands/snf-astakos.py
39 39
from kamaki.cli.command_tree import CommandTree
40 40
from kamaki.cli.utils import print_dict
41 41
from kamaki.cli.argument import FlagArgument, ValueArgument
42
from kamaki.cli.logger import add_stream_logger
42
from kamaki.cli.logger import add_file_logger, get_logger
43 43

  
44 44
snfastakos_cmds = CommandTree('astakos', 'astakosclient CLI')
45 45
_commands = [snfastakos_cmds]
46 46

  
47 47

  
48
log = add_stream_logger(__name__)
48
log = get_logger(__name__)
49 49

  
50 50

  
51 51
class _astakos_init(_command_init):
......
62 62
        base_url = self.config.get('astakos', 'url')\
63 63
            or self.config.get('user', 'url')\
64 64
            or self.config.get('global', 'url')
65
        self.client = AstakosClient(base_url, logger=log)
65
        self.client = AstakosClient(
66
            base_url, logger=add_file_logger('astakosclient'))
66 67
        self._set_log_params()
67 68
        self._update_max_threads()
68 69

  

Also available in: Unified diff