Skip to content

Commit

Permalink
disable debug for now
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jul 29, 2022
1 parent 4da799c commit 5a392e3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/spack/spack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,17 @@ def setup_main_options(args):

# Set up environment based on args.
tty.set_verbose(args.verbose)
tty.set_debug(2)
tty.set_debug(args.debug)
tty.set_stacktrace(args.stacktrace)

# Force always using debug
# debug must be set first so that it can even affect behavior of
# errors raised by spack.config.

if args.debug:
spack.error.debug = True
spack.error.debug = args.debug
spack.util.debug.register_interrupt_handler()
spack.config.set('config:debug', True, scope='command_line')
spack.util.environment.tracing_enabled = True
spack.error.debug = args.debug
spack.util.debug.register_interrupt_handler()
spack.config.set('config:debug', True, scope='command_line')
spack.util.environment.tracing_enabled = True

if args.timestamp:
tty.set_timestamp(True)
Expand Down

0 comments on commit 5a392e3

Please sign in to comment.