Commit 7637d600 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Move logger module to kamaki.cli

parent c4d51ec9
......@@ -40,7 +40,7 @@ from kamaki.cli.argument import ArgumentParseManager
from kamaki.cli.history import History
from kamaki.cli.utils import print_dict, red, magenta, yellow
from kamaki.cli.errors import CLIError
from kamaki import logger
from kamaki.cli import logger
_help = False
_debug = False
......@@ -384,9 +384,7 @@ def main():
log_file = parser.arguments['config'].get('global', 'log_file')
if log_file:
from kamaki.logger import set_log_filename
global filelog
filelog = logger.add_file_logger(__name__.split('.')[0])'Logging location: %s' % logger.get_log_filename())
......@@ -34,11 +34,11 @@
from kamaki.cli.config import Config
from kamaki.cli.errors import CLISyntaxError, raiseCLIError
from kamaki.cli.utils import split_input
from kamaki.logger import get_logger
from datetime import datetime as dtm
from time import mktime
from logging import getLogger
from argparse import ArgumentParser, ArgumentError
from argparse import RawDescriptionHelpFormatter
......@@ -52,7 +52,7 @@ except ImportError:
# progress not installed - pls, pip install progress
log = get_logger('kamaki.cli')
log = getLogger(__name__)
class Argument(object):
......@@ -354,7 +354,7 @@ class ProgressBarArgument(FlagArgument):
except NameError:
log.debug('WARNING: no progress bar functionality')
log.warning('WARNING: no progress bar functionality')
def clone(self):
"""Get a modifiable copy of this bar"""
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