diff options
author | Ian Clatworthy <ian.clatworthy@canonical.com> | 2010-01-28 16:00:31 +1000 |
---|---|---|
committer | Ian Clatworthy <ian.clatworthy@canonical.com> | 2010-01-28 16:00:31 +1000 |
commit | f8c78c38eb572d7a92febd6bd804f1c3c9346ba6 (patch) | |
tree | 7e5fcc28b7c3b0ffec6eab1f8a759bb27ffdc13d | |
parent | cdf148a24642b7c4b7d0fea16fa546220046490e (diff) | |
download | python-fastimport-f8c78c38eb572d7a92febd6bd804f1c3c9346ba6.tar.gz |
Ignore progress messages unless in verbose mode
-rw-r--r-- | processors/generic_processor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index a640c85..23afcb2 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -526,8 +526,10 @@ class GenericProcessor(processor.ImportProcessor): def progress_handler(self, cmd): """Process a ProgressCommand.""" - # We could use a progress bar here instead - self.note("progress %s" % (cmd.message,)) + # Most progress messages embedded in streams are annoying. + # Ignore them unless in verbose mode. + if self.verbose: + self.note("progress %s" % (cmd.message,)) def reset_handler(self, cmd): """Process a ResetCommand.""" |