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