Permalink
Browse files

Set serve verbosity based on global command verbosity

  • Loading branch information...
1 parent 9b44368 commit 3e8327a37a9cd2c3386443e472f0761b52808884 @amol- amol- committed Jan 31, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 gearbox/commands/serve.py
@@ -50,7 +50,6 @@ class ServeCommand(Command):
_monitor_environ_key = 'PASTE_MONITOR_SHOULD_RUN'
possible_subcommands = ('start', 'stop', 'restart', 'status')
- verbose = 1
def get_parser(self, prog_name):
parser = super(ServeCommand, self).get_parser(prog_name)
@@ -151,6 +150,8 @@ def take_action(self, opts):
# Windows case:
opts.set_user = opts.set_group = None
+ self.verbose = self.app_args.verbose_level
+
# @@: Is this the right stage to set the user at?
self.change_user_group(opts.set_user, opts.set_group)
@@ -275,7 +276,7 @@ def serve():
msg = ' ' + str(e)
else:
msg = ''
- self.out('Exiting%s (--debug to see traceback)' % msg)
+ self.out('Exiting%s (-v to see traceback)' % msg)
serve()

0 comments on commit 3e8327a

Please sign in to comment.