sb: Disable a log file for the check command.

Fix a minor issue in the log module.
This commit is contained in:
Chris Johns 2018-01-18 13:38:52 +11:00
parent 7f49a01a05
commit 6951eb276e
2 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,7 @@ def check_orphans(opts):
def run():
import sys
try:
_opts = options.load(args = sys.argv)
_opts = options.load(args = sys.argv, logfile = False)
log.notice('RTEMS Source Builder - Check, %s' % (version.str()))
orphans = _opts.parse_args('--check-orphans', error = False, extra = False)

View File

@ -40,6 +40,7 @@ tracing = False
quiet = False
def set_default_once(log):
global default
if default is None:
default = log