summaryrefslogtreecommitdiff
path: root/ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-24 18:19:45 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-24 19:06:04 +0300
commit1fe05653813a92a7c6bdb59b8ebec15967a96576 (patch)
treeb75a6f21650e08aaa47b3443e43e49cd1324be72 /ick
parenta05ef28b64589a79e696dd8492a8534b2641deaf (diff)
downloadick-1fe05653813a92a7c6bdb59b8ebec15967a96576.tar.gz
Add support for multiple output files, quiet levels
Diffstat (limited to 'ick')
-rwxr-xr-xick5
1 files changed, 2 insertions, 3 deletions
diff --git a/ick b/ick
index c192f1d..a446d6f 100755
--- a/ick
+++ b/ick
@@ -46,7 +46,7 @@ class Ick(cliapp.Application):
filename = self.parse_command_line_args(args)
ick = self.read_ick_file(filename)
self.logger = icklib.Logger()
- self.logger.set_output_file(self.output)
+ self.logger.add_output_file(self.output, self.settings['quiet'])
self.build_projects(ick)
def parse_command_line_args(self, args):
@@ -64,12 +64,11 @@ class Ick(cliapp.Application):
projects = icklib.create_projects_from_ick(
ick, self.settings['project'])
for project in projects:
- self.logger.log(
+ self.logger.important(
'Building project {project_name}',
project_name=project.name)
with self.logger:
project.set_logger(self.logger)
- project.set_quiet(self.settings['quiet'])
project.build(statedir, targets)