Skip to content

Commit ae70d20

Browse files
committed
daemon: should only log "Ignoring -w" for "daemon" command, not for gui
1 parent 5883637 commit ae70d20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

electrum/daemon.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@ def __init__(
395395
fd = get_file_descriptor(config)
396396
if fd is None:
397397
raise Exception('failed to lock daemon; already running?')
398-
if 'wallet_path' in config.cmdline_options:
399-
self.logger.warning("Ignoring parameter 'wallet_path' for daemon. "
400-
"Use the load_wallet command instead.")
401398
self._plugins = None # type: Optional[Plugins]
402399
self.asyncio_loop = util.get_asyncio_loop()
403400
if not self.config.NETWORK_OFFLINE:
@@ -562,6 +559,9 @@ async def _stop_wallet(self, path: str) -> bool:
562559
return True
563560

564561
def run_daemon(self):
562+
if 'wallet_path' in self.config.cmdline_options:
563+
self.logger.warning("Ignoring parameter 'wallet_path' for daemon. "
564+
"Use the load_wallet command instead.")
565565
# init plugins
566566
self._plugins = Plugins(self.config, 'cmdline')
567567
# block until we are stopping

0 commit comments

Comments
 (0)