Skip to content

Commit

Permalink
Set serve verbosity based on global command verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Jan 31, 2013
1 parent 9b44368 commit 3e8327a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gearbox/commands/serve.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 3e8327a

Please sign in to comment.