Commit ccd58b6a authored by Xavier Thompson's avatar Xavier Thompson

[slapformat, cli.format]: WIP Use slapos.format logger

parent 9e33d518
......@@ -90,7 +90,7 @@ class FormatCommand(ConfigCommand):
def take_action(self, args):
configp = self.fetch_config(args) # read the options in .cfg
conf = FormatConfig(logger=self.app.log)
conf = FormatConfig()
conf.mergeConfig(args, configp) # commandline options overwrite .cfg options
......
......@@ -122,8 +122,8 @@ class FormatConfig(Parameters, Options):
logger : logging.Logger
def __init__(self, logger):
self.logger = logger
def __init__(self):
self.logger = logging.getLogger("slapos.format")
def abort(self, fmt, *args):
message = fmt % tuple(args)
......
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