Merge pull request #290 from mesosphere/configure-log
configure logger before auth
This commit is contained in:
@@ -67,10 +67,6 @@ def _main():
|
||||
version='dcos version {}'.format(dcoscli.version),
|
||||
options_first=True)
|
||||
|
||||
if args['<command>'] != 'config' and \
|
||||
not auth.check_if_user_authenticated():
|
||||
auth.force_auth()
|
||||
|
||||
if not _config_log_level_environ(args['--log-level']):
|
||||
return 1
|
||||
|
||||
@@ -78,6 +74,10 @@ def _main():
|
||||
|
||||
util.configure_process_from_environ()
|
||||
|
||||
if args['<command>'] != 'config' and \
|
||||
not auth.check_if_user_authenticated():
|
||||
auth.force_auth()
|
||||
|
||||
command = args['<command>']
|
||||
http.silence_requests_warnings()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user