set verbosity after options
This commit is contained in:
4
electrum
4
electrum
@@ -121,8 +121,6 @@ if __name__ == '__main__':
|
|||||||
if options.portable and options.wallet_path is None:
|
if options.portable and options.wallet_path is None:
|
||||||
options.wallet_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum.dat')
|
options.wallet_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum.dat')
|
||||||
|
|
||||||
set_verbosity(options.verbose)
|
|
||||||
|
|
||||||
# config is an object passed to the various constructors (wallet, interface, gui)
|
# config is an object passed to the various constructors (wallet, interface, gui)
|
||||||
if is_android:
|
if is_android:
|
||||||
config_options = {'portable':True, 'verbose':True, 'gui':'android', 'auto_cycle':True}
|
config_options = {'portable':True, 'verbose':True, 'gui':'android', 'auto_cycle':True}
|
||||||
@@ -131,6 +129,8 @@ if __name__ == '__main__':
|
|||||||
for k, v in config_options.items():
|
for k, v in config_options.items():
|
||||||
if v is None: config_options.pop(k)
|
if v is None: config_options.pop(k)
|
||||||
|
|
||||||
|
set_verbosity(config_options.get('verbose'))
|
||||||
|
|
||||||
config = SimpleConfig(config_options)
|
config = SimpleConfig(config_options)
|
||||||
|
|
||||||
if len(args)==0:
|
if len(args)==0:
|
||||||
|
|||||||
Reference in New Issue
Block a user